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
Why are arrays usually processed with for loop?
What are associate containers?
Explain container class.
What do you mean by function overriding & function overloading in c++?
What is c++ and its uses?
which operator is used for performing an exponential operation a) > b) ^ c) none
Explain how overloading takes place in c++?
What is a unnitialised pointer?
What is the use of class in c++?
Differentiate between an inspector and a mutator ?
What is fflush c++?
Define vptr.
What is the difference between global variables and static varables?
What does the linker do?
Explain the differences between list x; & list x();.