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 do I download c++?
What is an operator function? Describe the function of an operator function?
What are the advantages of c++?
Which of the following is evaluated first: a) && b) || c) !
Can a new be used in place of old mallocq? If yes, why?
Can we declare a base-class destructor as virtual?
Why are pointers used?
How new/delete differs from malloc()/free?
What is an adjust field format flag?
Explain about Garbage Collector?
Inline parameters : What does the compiler do with the parameters of inline function, that can be evaluated in runtime ?
Difference between struct and class in terms of access modifier.
What is the average salary of a c++ programmer?
What is this pointer in c++?
Which recursive sorting technique always makes recursive calls to sort subarrays that are about half size of the original array?