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 |
Find the next series: SE QU EN TI ?
An apple seller is having some apples. He is selling half of the apple what he has plus half the apple to the first customer. In the same way he sells the remaining apple to 7 customers. After selling to 7 customers, he has no apples with him.
pls send me model question question and answer paper of 5 years. my email add:goutamda126@rediff.com pls send me as early as poissible ..........
6 Answers Bank of Baroda, Tata Steel Limited,
#include<stdio.h> int a; { printf{"%d",&a); }
Find the missing number in the series: 2, 5, __ , 19 , 37, 75
The speed ratio of two trains is 5:7,first train is travelling at a speed of 350 km/hr, what is the speed of the second train?
2. In an examination a student must answer 65% of the questions correctly. But it was found that after answer 7 questions corretly out of the first 14, the student qualified. What is the min no. of questions in the paper. (a) 22 (b) 18 (c) 20 (d) Can't say
8 persons A,B,C,D,E,F,G,H are sitting in a round dining table.some arrangement was given and position of H was asked.I don't remember the question exactly.
Person who dicided to go to weekend trip should not exceed 8 hrs driving in a day. Average speed of forward journey is 40 miles/hour . Due to traffic in sundays ,in return journey average speed is 30mph.How far he can select a picnic spot?
7/8 of 3/7 of a number is equal to 25% of 45% of another number. What is the ratio of the first and the second numbers respectively? (a) 3 : 7 (b) 9: 10 (c) 3 : 10 (d) 3 : 2 (e) None of these
computer can be written as 04p14q22u06s. then how software can be written?
a watch which looses uniformly was observed to be 12 min fat at 4am.on 6th of a month.it showed 20 min less than thae correct time at 6pm on the 10th of the same month.when did the watch show correct time