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

When must you use a pointer rather than a reference?

1045


what is upcasting in C++?

1190


What is a sequence in c++?

1027


What is c++ mutable?

1123


Do you know what are the new features that iso/ansi c++ has added to original c++ specifications?

1130


what is C++ objects?

1200


What is the full form of stl in c++?

1197


What are dynamic type checking?

1053


Distinguish between a # include and #define.

1160


What is the difference between public, private, and protected access?

1074


Can you be bale to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?

998


What is a v-table?

1190


What is a virtual destructor? Explain the use of it?

995


Explain container class.

1257


What apps are written in c++?

1103