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

one question on: -=+,*=-,/=* etc then 10/5*45=?

5 Answers   Essar,


A contract is to paint 3 houses. Mr brown takes 6 days to paint a house. Mr black takes 8 days and Mr blue 12 days. Mr brown leaves for a vacation after 8 days. Mr black works for 6 days from then.How many days would Mr blue require to complete the contract?

5 Answers   3i Infotech, HealthAsyst,


There are two glasses, one is filled with orange juice and other is filled with apple juice both in equal quantities say 50 50 ml. 50% orange juice is poured in apple juice and than the 50% mixture of orange and apple juice is poured in the glass of orange juice. Now you have to find out how much orange juice is there in apple juice glass and vice-versa.

0 Answers   InfoTest,


How many 3-digit numbers will be there which are divisible by 19?

0 Answers   Huawei,


Modulo(373,7)+round(5.8)+truncat(7.2)-round(3.4)=

6 Answers   TCS,


PlZ Send me the Banking(Axis) Sector Question paper to my id?

0 Answers  


(Words not repeated exactlybut question is this) Digit sliding means if there is a number 1627, after digit sliding it will be 7162. Say a lowest positive integer with unit digit as z, after digit sliding a new number is acquired which four times the original number before digit sliding. How many digits do the original number have?

1 Answers  


A chain is broken into three pieces of equal lenths containing 3 links each. It is taken to a backsmith to join into a single continuous one . How many links are to to be opened to make it ?

0 Answers   Infosys,


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,


Two distinct no's are taken from 1,2,3,4......28. Find the probability that their sum is less than 13

0 Answers   CTS,


There are two trees in a lawn. One grows at a rate 3/5 of the other in 4 years. If the total growth of trees What is the height of the smaller tree after 2 years

0 Answers   TCS,


City A's population is 68000, decreasing at a rate of 80 people per year. City B having population 42000 is increasing at a rate of 120 people per year. In how many years both the cities will have same population?

7 Answers   3i Infotech, Canara Bank, Geodesic, Hewitt, Mu Sigma,


Categories