Write a program that takes a 5 digit number and calculates 2
power
that number and prints it.
Answer Posted / 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 |
Post New Answer View All Answers
x:y=3 and x+y=80 what is the value of y?
There are 6 people W,H,M,C,G,F who are murderer , victim , judge , police, witness, hangman. There was no eye witness only circumtancial witness. The murderer was sentenced to death. Read following statement and determine who is who.
One man brought pen and book from 250 and he sold both at 10% profit on pen and 20% loss on book and finally he gained 40% what is the value of pen
In a class the average age is 16yrs.if the teacher who is 40 yrs of age is also included ,the average becomes 17yrs,how many students were there?
A man said to woman " your only brother's son is my wife'sbrother". How is the woman related to the man's wife..
If D is adjacent to F then who is adjacent to C?
Travelling for 9 days. total dist to be covered is 1080 miles. Dist covered per day must be 20 miles then that of previous day. what dist is covered
two trees are there. one grows at 3/5 of the other. in 4 years, total growth of trees is 8 ft. what growth will smaller tree will have in 2 years.
A person was fined for exceeding the speed limit by 10 mph. Another person was also fined for exceeding same speed limit by twice the same. If the second person was travelling at a speed of 35 mph, find the speed
if f(x)=1/x**2 , then f(f(f(x)))
The base 5 representation of the decimal number 2048 is _____.
If m-4 is 7 more than n then m+9 is how much more than n+2
two workers can type two pages in two minuets then how many persons can type 18 pages in 6 minuets
How is the father of the man ,who is the brother of the only aunt of my brother related to me?
What is your objeective in career ?