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
What is stoi in c++?
What does count ++ do in c++?
Are there interfaces in c++?
Write a function that swaps the values of two integers, using int* as the argument type?
What is the purpose of ios::basefield in the following statement?
How do you define a class in c++?
Is rust better than c++?
Write a program using GUI concept for the scheduling algorithms in Operating system like SJF,FCFS etc..
If you push the numbers (in order) 1, 3, and 5 onto a stack, which pops out first a) 1 b) 5 c) 3
How many standards of c++ are there?
Explain class invariant.
What is the standard template library (stl)?
Can constructor be static in c++?
What is a syntax in c++?
Why do we need function?