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 |
What do you think is the most fascinating game? Hi, I am a big game fan. Could anyone introduce some fascinating game for me? Thank you!
Two trains starting at same time, one from Bangalore to Mysore and other in opposite direction arrive at their destination 1 hr and 4 hours respectively after passing each other.How nuch faster is one train from other?
5 Answers Caritor, Infosys, L&T,
There are five thieves, each loot a bakery one after the other such that the first one takes 1/2 of the total no. of the breads plus 1/2 of a bread. Similarly 2nd, 3rd,4th and 5fth also did the same. After the fifth one no. of breads remained are 3. Initially how many breads were there?
Mohan is thirteenth from the left end in a row of children. Prabir is twelfth from the right end and eighteenth from the left end. How many children are towards the right of Mohan in that row? (a) 12 (b) 18 (c) 17 (d) Cannot be determined (e) None of these
Hello!!I have appllied for the post of Jr.Executive(ATC).My educational qualification is B.Tech(IT).I ould like to know if the questions in technical section will be based on IT alone or else also from other subjects also like electrical/electronics/civil/tele communication.I will be grateful for a relevant answer.thank you in advance
If your manager ask you to bet on race bewteen eagle cheetah and dolphin whihc one would you prefer and why,provided that the race is happening on land.
A man shows his friend a woman sitting in a park and says that she the daughter of my grandmother's only son. What is the relation between the two
General Aptitude & Technical Test of Mechanical Engineering For the H.P.C.L. Mumbai Refinery
There are two balls touching each other circumferentially. The radius of the big ball is 4 times the diameter of the small ball.The outer small ball rotates in anticlockwise direction circumferentially over the bigger one at the rate of 16 rev/sec. The bigger wheel also rotates anticlockwise at N rev/sec. what is 'N' for the horizontal line from the centre of small wheel always is horizontal.
A person has Rs 100/- in his pocket, he can as 25 pencils or 15 books. He kept 15% of the money for travelling expenses and purchased 5 pencils. So how many books he can purchase with the remaining money.
The ratio of the number of boys and girls in a college is 3:2. Out of these 10 percent are boys and 25 percent are girls are scholarship holders. Find the no of boys and girls who are not scholarship holders.
One of the longest sides of the triangle is 20 m. The other side is 10 m. Area of the triangle is 80 m2m2. What is the another side of the triangle?