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


Please Help Members By Posting Answers For Below Questions

Why are arrays usually processed with for loop?

766


What are associate containers?

608


Explain container class.

682


What do you mean by function overriding & function overloading in c++?

596


What is c++ and its uses?

616






which operator is used for performing an exponential operation a) > b) ^ c) none

602


Explain how overloading takes place in c++?

568


What is a unnitialised pointer?

525


What is the use of class in c++?

562


Differentiate between an inspector and a mutator ?

701


What is fflush c++?

574


Define vptr.

590


What is the difference between global variables and static varables?

563


What does the linker do?

585


Explain the differences between list x; & list x();.

598