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 |
if hdfc bank takes written test of fresher before giving job then which sections they cover in it?
COMPLETE THE SERIES 19 48 30 96.... A.144 B. 192 C.160 D. NONE OF THESE
If a and b are positive integers, is a + 4b odd? 1) b is even. 2) a is odd. a) if statement (1) ALONE is sufficient, but statement (2) alone is not sufficient to answer the question. b) if statement (2) ALONE is sufficient, but statement (1) alone is not sufficient to answer the question. c) if BOTH statements (1) and (2) TOGETHER are sufficient to answer the question asked, but NEITHER statement ALONE is sufficient. d) if EACH statement ALONE is sufficient to answer the question asked. e) if statements (1) and (2) TOGETHER are NOT sufficient to answer the question asked, and additional data specific to the problem are needed.
Complete the series 2, 7, 24, 77,__ (hint: 2*12= 24, 7*11= 77, therefore 24*10=
There are no of urns &no of balls. If three balls are placed in each urn then 3 balls is left. If 4 balls are placed in each urn then 1 urn is left. What is the total no of balls?
There are 8 balls that look identical. One of them weighs less than the others. Given a weighing scale, how will you find this ball.
21 Answers Google, Infosys, Mind Tree, Sapient, Vatika, Wipro,
what is present share of service industry in GDP ?
Replace each letter by a digit. Each letter must be represented by the same digit and no beginning letter of a word can be 0. O N E O N E O N E O N E ------- T E N
London time is five and a half hours behind Delhi time. What time is it in London if it is 02:35 in Delhi? (a) 21:05 (b) 08:05 (c) 21:35 (d) 07:05 (e) None of these
A storm will move with a velocity of towords the center in hours. At the same rate how much far will it move in hrs.
consider expresion 'ab' . what happens when 'a' is divided by 'c' & 'b' is multiplied by 'c'.
it has 20 mixutre conatins mil and water in the ratio 3:5,replace 4 litres of mixture with 4 litres of water what is the final ratio of milk and water.