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 shallow and deep copy?

1074


Explain the differences between private, public and protected and give examples.

979


How do you invoke a base member function from a derived class in which you have not overridden that function?

1084


Explain deep copy and a shallow copy?

1011


What is class invariant in c++?

1193


What is #include cstdlib in c++?

1154


What are proxy objects in c++?

1143


What is the difference between delegation and implemented-in-terms-of?

973


What do you mean by static variables?

1130


What are special characters c++?

994


Tell me an example where stacks are useful?

1003


Briefly describe a B+ tree. What is bulk loading in it?

1284


What is DlgProc?

986


What are pointer-to-members? Explain.

1088


How can I learn c++ easily?

1031