Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...



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



Write a program that takes a 5 digit number and calculates 2 power that number and prints it. ..

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

Write a program that takes a 5 digit number and calculates 2 power that number and prints it. ..

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

Post New Answer

More General Aptitude Interview Questions

if hdfc bank takes written test of fresher before giving job then which sections they cover in it?

1 Answers   HDFC,


COMPLETE THE SERIES 19 48 30 96.... A.144 B. 192 C.160 D. NONE OF THESE

2 Answers   Satyam,


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.

4 Answers  


Complete the series 2, 7, 24, 77,__ (hint: 2*12= 24, 7*11= 77, therefore 24*10=

0 Answers   TCS,


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?

0 Answers   Accenture,


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 ?

2 Answers   ONGC,


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

1 Answers   Infosys,


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

14 Answers  


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.

0 Answers   Accenture,


consider expresion 'ab' . what happens when 'a' is divided by 'c' & 'b' is multiplied by 'c'.

5 Answers   Wipro,


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.

0 Answers   Accenture,


Categories