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
How the virtual functions maintain the call up?
how to explain our contribution in the project?
Who created c++?
Explain function overloading
Explain how overloading takes place in c++?
What is the role of copy constructor in copying of thrown objects?
Who discovered c++?
Explain the difference between abstract class and interface in c++?
write a corrected statement so that the instruction will work properly. if (4 < x < 11) y = 2 * x;
What ANSI C++ function clears the screen a) clrscr() b) clear() c) Its not defined by the ANSI C++ standard
How to declare an array of pointers to integer?
What do the keywords volatile and mean mutable?
When is dynamic checking necessary?
Explain the use of virtual destructor?
What is unary operator? List out the different operators involved in the unary operator.