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 |
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.
In a company 30% are supervisors and 40% employees are male if 60% of supervisors are male. What is the probability that a randomly chosen employee is a male or female?
In a box there are four different coloured bells,of some quantity (4 each ) what is the minimum number of pick ups so that, atleast 2 of them of the same colour.
Complete the series:5,6,7,8,10,11,14,__.
Hansie made the following amounts in seven games of cricket in India: Rs.10, Rs.15, Rs.21, Rs.12, Rs.18, and Rs.17(all figures in crores of course). Find his average earnings.
If + means * and * means / and / means %. what is the value of 2+3*5/7?
make 4 using 1,1,6,7 operators +,-,x,/ are allowed numbers are not to be repeted
A man ate 100 bananas in five days, each day eating 6 more than the previous day. How many bananas did he eat on the first day?
Two persons start at the same point, walk in opposite directions with 5km/hr and 5.5km/hr respectively. What is the distance separated after 2 and half hrs?
If A is travelling at 72 km per hour on a highway. B is travelling at a speed of 25 meters per second on a highway. What is the difference in their speeds in m/sec.
From its total income, A sales company spent Rs.20,000 for advertising, half of the remainder on commissions and had Rs.6000 left. What was its total income?
A person left house with speed 40 mile per hour his wife after 30 minutes left to catch him at a speed of 50. In what time she will catch?