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

Can I learn c++ in a week?

1054


What is a float in c++?

975


Which is most difficult programming language?

1087


Explain the difference between static and dynamic binding of functions?

1051


What ANSI C++ function clears the screen a) clrscr() b) clear() c) Its not defined by the ANSI C++ standard

1014


What is c++ in english?

1054


Explain the concept of copy constructor?

1029


How does list r; differs from list r();?

1136


Can you explicitly call a destructor on a local variable?

1019


Differentiate between structure and class in c++.

1067


What is ios class in c++?

1097


Can static member variables be private?

1161


Is c++ free?

1088


How can I improve my c++ skills?

1114


Is std :: string immutable?

1026