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
Is eclipse good for c++?
What is decltype c++?
What is endl c++?
What is the correct syntax for inheritance a) class aclass : public superclass b) class aclass inherit superclass c) class aclass <-superclass
Where can I run c++ program?
What is flush programming?
Write a code/algo to find the frequency of each element in an array?
What are the various storage classes in C++?
What is a pdb file?
What is the difference between a reference and a pointer?
Will a C compiler always compile C++ code a) Yes b) No c) Only optimized compilers
What are the differences between java and c++?
What are the two types of polymorphism?
What is the difference between passing by reference and passing a reference?
Explain what data encapsulation is in c++?