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 r = 5, n=3 and if first pole has 2 flags, third pole has 1 flag, how many ways can the flags be arranged?

0 Answers   Elico,


There are 6 red shoes & 4 green shoes . If two of red shoes are drawn what is the probability of getting red shoes

4 Answers   3i Infotech, Canara Bank, CMC, Geodesic, Mu Sigma,


If any1 have previous NIC Papers, plz send it to nads707@gmail.com....

0 Answers  


Q) Susan wants to put up fencing around three sides of her rectangular yard and leave a side of 20 feet unfenced. If the yard has an area of 680 square feet, how many feet of fencing does she need? a) 38 b) 44 c) 72 d) 88 e) 97

6 Answers   GMAT, Infosys,


Supposing a clock takes 7 seconds to strike 7. How long will it take to strike 10?

1 Answers   Infosys,


Please,let me know the RRB question papers for Junior Engg.Electrical & Electronics Engg post.Thank You

0 Answers   PreludeSys,


quants,logical,verbal

0 Answers   chain sys,


10. A sum of money amounts to Rs.8968/- in 3 years and Rs.9424/- in 4 years at 6% simple interest. What is the sum?

4 Answers   Punjab National Bank, Subex,


One rectangular plate with lenght 8 inches, breadth 11inches and 2 inches thickness is there. What is the length of the circular rod with diameter 8 inches and equal to volume of rectangular plate?

0 Answers   HCL,


From 7:00 AM to 11:00 AM it rained 2.25 inches. At 11:00 AM the rain increased to fall at a rate of 1.25 in. every two hours. How many inches of rain landed on the ground by 5:00 PM? a) 7 b) 9.75 c) 6 d) 3.25 e) 7.125 Also please provide the solution for this question .

4 Answers  


3 machines can complete the work in 4,5, and 6 hours respectively. due to power failures they did the work alternatively. Then what is time taken to complete the work?

1 Answers   HCL,


Find the next series: AD DP PL LV ?

0 Answers   CTS,


Categories