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

How the virtual functions maintain the call up?

697


how to explain our contribution in the project?

3205


Who created c++?

674


Explain function overloading

666


Explain how overloading takes place in c++?

660






What is the role of copy constructor in copying of thrown objects?

696


Who discovered c++?

654


Explain the difference between abstract class and interface in c++?

620


write a corrected statement so that the instruction will work properly. if (4 < x < 11) y = 2 * x;

1611


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

688


How to declare an array of pointers to integer?

686


What do the keywords volatile and mean mutable?

696


When is dynamic checking necessary?

672


Explain the use of virtual destructor?

706


What is unary operator? List out the different operators involved in the unary operator.

672