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 5 digit no and calculate 2 power
that no and print it.

Answer Posted / yeah

#include<iostream.h>
#include<math.h>
void main()
{
int a,n=1,i;
cout<<"enter Num";
cin>>a;
//n=pow(2,a);
for(i=0;i<a;i++)
n*=2;
cout<<n;
}

Is This Answer Correct ?    3 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are special characters c++?

972


What are friend classes?

1016


Why we use #include iostream in c++?

990


In c++, what is the difference between method overloading and method overriding?

1073


What new()is different from malloc()?

1045


Give an example of run-time polymorphism/virtual functions.

948


Which of the following is evaluated first: a) && b) || c) !

2304


Is c++ the hardest programming language?

1073


How does com provide language transparency?

963


What is meant by iomanip in c++?

1125


How much is c++ certification?

993


Do you know what are pure virtual functions?

1105


Why we use #include conio h in c++?

992


What is vector string in c++?

1035


How is objective c different from c++?

1194