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
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 |
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 |
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?
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.
in a class, 20 opted for physics,17for maths,5for both and 10 for other subjects.the class contains how many students ?
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....
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?
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:?
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.
What is the value of (p-1)3 when p=15/18+5/16-20/24?
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
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?
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)