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

human blood has A antigen,B antigen, both A and B or neither antigens.rh antigen may or may not be there.blood iis a +ve if a and rh antigens r there but not b antigen.a person having a and b antigen has AB -ve blood.having only rh antigen gives O +ve blood the other blood groups r defined in the same manner.in a hospital the following records were noted 25 had A antigen,17 had A and b ,27 had b ,22 had b and RH,30 had RH,12 had none of the antigens,16 had A and Rh antigens and 15 had all the 3 antigens.how many patients a)were surveyed? b)had exactly 1 antigen? c) had exactly 2 antigens? d) had O +ve blood? e) had AB -ve blood? f) had A-positive blood?

0 Answers  


In the given quadratic equation, mx2+nx+o=0 .If the ratio of the sum of the roots and the product of roots is 2:7, what can be possible values of b and c?

0 Answers   Cap Gemini,


solve the case : a man was found murdered on 02.10.1992 afternoon. 1. his wife colled poice 2. police questioned everyone. 3. wife : sir, i was sleeping, when d murder took place. 4.Cook: I was cooking. 5 Gardner : I was picking vegetables. 6 House-maid : i went to post office. 7 Children : we went to play. 8 Neighbour : We went to a marriage. Police arrested the murderer immediately. WHO IS IT ? REPLY WITH THE REASON IF U R BRILLIANT.

30 Answers   GTE, Infosys, Wipro,


One of the longest sides of the triangle is 20 m. The other side is 10 m. Area of the triangle is 80 m2. What is the another side of the triangle?

0 Answers   HCL,


sum of 5 consecutive numbers is 35. how many of the numbers are prime:

0 Answers   Verifone,


The lowest temperature in the night in a city A is 1/3 more than 1/2 the highest during the day. Sum of the lowest temperature and the highest temperature is 100 degrees. Then what is the low temp?

0 Answers   Accenture,


Why do I want to join this organization?

0 Answers   CSC, HP,


Mr. T has a wrong weighing pan. One arm is lengthier than other. 1 kilogram on left balances 8 melons on right, 1 kilogram on right balances 2 melons on left. If all melons are equal in weight, what is the weight of a single melon?

1 Answers   HCL, Infosys,


One guy (some name) has Rs. 100/- in hand. He has to buy 100 balls. One football costs Rs. 15/, One Cricket ball costs Re. 1/- and one table tennis ball costs Rs. 0.25 He spend the whole Rs. 100/- to buy the balls. How many of each balls he bought?

0 Answers   Accenture,


What is the value of 15^2- 14^2 + 13^2- 12^2........-2^2+ l^2? 1.225 2.265 3.120 4.125

1 Answers   CSC,


plz send me the model papers of andhra bank clerical exams. plz iam very need full it.

0 Answers  


Types of attribute and then describe it.

1 Answers  


Categories