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

Is eclipse good for c++?

1004


What is decltype c++?

954


What is endl c++?

1057


What is the correct syntax for inheritance a) class aclass : public superclass b) class aclass inherit superclass c) class aclass <-superclass

1152


Where can I run c++ program?

1028


What is flush programming?

965


Write a code/algo to find the frequency of each element in an array?

1063


What are the various storage classes in C++?

1108


What is a pdb file?

950


What is the difference between a reference and a pointer?

1060


Will a C compiler always compile C++ code a) Yes b) No c) Only optimized compilers

1016


What are the differences between java and c++?

1029


What are the two types of polymorphism?

1083


What is the difference between passing by reference and passing a reference?

1040


Explain what data encapsulation is in c++?

1051