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
A bus started from bustand at 8.00am, and after staying for 30 minutes at a destination, it returned back busstand. The destination is 27 miles from the busstand. The speed of the bus is 18mph. During the return journey bus travels with 50% faster speed.At what time does it return to the busstand?
If LOAD = MPBE and DRIVE = ESJWF Then LADDLER = ?
A man drives at a speed of 40 miles/hr. His wife left 30 mins. late with 50 miles/hr speed. when will they meet ?
How many 3-digit numbers with atleast one 5 in their digits?
My name is deepshikha .if any one have quentiles apptitude question paper please mail me on diffmail172@gmail.com.
A farmer has a farm square of 100 sq.m a cow is tied at one and with a rope of 10m length.assume pi-3.what is the area of land the cow can graze.
Find the number WXYZ divisible by 36? i) Let the digits be5, 4,3,6 -not in that order ii) Sum of last two digits is 9 iii) Sum of middle two digits is 7->If one is sufficient then ans as A || if two is sufficient then ans as B || if all are necessary then ans as C || if nothing is needed then
A ship is away from the shore by 180 miles.A plane is travelling at 10 times speed of the ship.How long from the shore will they meet?
If Log2 x - 5 Log x + 6 = 0, then what would the value / values of x be?
pick the odd one out bend shave chop whittle shear
maths
In a colony there are some families. Each of them have children but different in numbers.Following are conditions ano of adult>no of sons>no of daughters>no of families. b>each sister must have atleast one brother and should have at the most 1 sister. no of children in one family exceeds the sum of no of children in the rest families. Tell the no of families.
cgl2010 tier 2 ki merit kya rhgi
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.
if area is icc. by 30% then what is the change in the area?