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
Jack and Jill went up and down a hill. They started from the bottom and Jack met Jill again 20 miles from the top while returning. Jack completed the race 1 min a head of Jill. If the hill is 440 miles high and their speed while down journey is 1.5 times the up journey. How long it took for the Jack to complete the race ?
A building with height D shadow upto G. What is the height of a neighbouring building with a shadow of C
A son and father go for boating in river upstream. After rowing for 1 mile son notices the hat of his father falling in the river. After 5 min. he tells his father that his hat has fallen. So they turn around and are able to pick the hat at the point from where they began boating after 5 min. tell the speed of river.
Which of the following does multithreading allow? A. several transactions that require the same program to use one copy of the program. B. many tasks to be allocated to the terminal. C. an audit trail of all files records from all files updated by a particular application
One person meet his friend on 12:30 then on 1:20 on second day, on third day -----?
there is a safe with a 5 digit No. The 4th digit is 4 greater than second digit, while 3rd digit is 3 less than 2nd digit. The 1st digit is thrice the last digit. There are 3 pairs whose sum is 11. Find the number. Ans) 65292.
If a ball falls from 16 feet takes 4 seconds. How much time it will take when falls from 64 feets.
Four circles are drawn from the corners of a square of area 49 cm2. Find the area of 4 circles outside the square (they didn't mention that circles have radius=1/2 side of a square)?
How many mashes are there in 1 square meter of wire gauge if each mesh is 8mm long and 5mm wide ?
In how many rows will 200 Miranda bottles be placed, if 200 Miranda bottles are stacked in such a way that there are 20 bottles in the bottom, 19 in the next row, 18 in the row next and so on?
A persons age is similar to the year he was born(last two digits is counted as age).
What is the value of a property, which has been insured at the rate of 1/6% of its value, if the annual premium paid on it is Rs. 83.33 (in Rs.)?
the sum of the present ages of a father and his son is 60 years. Six years ago, father's age was five times the age of the son. After 6 years, son's age will be?
Four Members A, B, C, D are playing a game .A person losing a game should double the amount of others .B, C, D are losing in order after three games .The amount after 3 games are A&B having 40,D is having 16&C 80.What amount did B have?
A car has run 10000 miles using 5 tyres interchangably,To have a equal wornout by all tyres how many miles each tyre should have run. answer 4000 miles/tyre