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 / venkataramakrishna.danduri

#include <iostream.h>

void main()
{
int b = 0;
int num5digit;
cin>>num5digit;
b = 1<< num5digit;
cout<<"b = "<<b;
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is stoi in c++?

1185


What does count ++ do in c++?

1213


Are there interfaces in c++?

1026


Write a function that swaps the values of two integers, using int* as the argument type?

1033


What is the purpose of ios::basefield in the following statement?

1267


How do you define a class in c++?

1089


Is rust better than c++?

1124


Write a program using GUI concept for the scheduling algorithms in Operating system like SJF,FCFS etc..

3854


If you push the numbers (in order) 1, 3, and 5 onto a stack, which pops out first a) 1 b) 5 c) 3

1378


How many standards of c++ are there?

1101


Explain class invariant.

1071


What is the standard template library (stl)?

1796


Can constructor be static in c++?

1120


What is a syntax in c++?

1166


Why do we need function?

1064