Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...



Write a program that takes a 5 digit number and calculates 2
power
that number and prints it.

Answers were Sorted based on User's Feedback



Write a program that takes a 5 digit number and calculates 2 power that number and prints it. ..

Answer / shubham

#include<iostream.h>
#include<math.h>
void main()
{
int a,b,q,r;
long double d;
cout<<"Enter a ";
cin>>a;
d=pow(2,a);
cout<<"powered = "<<d;
}

Is This Answer Correct ?    1 Yes 0 No

Write a program that takes a 5 digit number and calculates 2 power that number and prints it. ..

Answer / anish

#include<stdio.h>
#include<maths.h>
#include<conio.h>
main()
{
int a,b;
printf("Enter 5 digit num");
scanf("%d",&a);
printf("the 5th power of %d is %dpow5",a,a);
getch();
}

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More General Aptitude Interview Questions

The sum of the digits of a two digit number is 8. When 18 is added to the number, the digits are reversed. the number?

0 Answers   TCS,


Bird is flying 120km/hr b/w B to R. two trians at B to R at 60 kmph .The distance trvelled by the bird before it is killed.

2 Answers   Geometric Software,


in a class, 20 opted for physics,17for maths,5for both and 10 for other subjects.the class contains how many students ?

9 Answers   Cognizant,


hii all...on 30th have given the exam of bob[bank of baroda]?? so how many of u have appreared for this above exam?? ur valuable comments r appreciated....

3 Answers  


2 persons start from a pt. and go in opposite directions. After going 3 km they turn left and walk 4 km . how far r they now?

0 Answers   Accenture,


If second no is twice the first no and first no is thrice the third no.Their avg is 20.Find the greatest no?

12 Answers   Accenture, HCL, Satyam, TCS,


analogy: cell: tissue::atom:?

0 Answers   IBM, TATA,


salary is 's' per month,'x'% of salary is given as bonus, if 3 months salary is s1,s2 & s3 then what is his salary.

7 Answers   Apollo, Wipro,


What is the value of (p-1)3 when p=15/18+5/16-20/24?

9 Answers   HCL,


one man or two women or three boys can do a work in 44 days then one man, one women and one boy together can fininsh the same work in ---- days

0 Answers   Accenture,


A can do a piece of work in 20 days, which B can do in 12 days. In 9 days B does ¾ of the work. How many days will A take to finish the remaining work?

0 Answers   Accenture,


Delhi's population is increasing day by day what is the reasong behind it & how can we solve it. G.D QUESTION (amit_nirwan@yahoo.com)

0 Answers   Shell,


Categories