write a program that takes 5 digit no and calculate 2 power
that no and print it.
Answer Posted / yeah
#include<iostream.h>
#include<math.h>
void main()
{
int a,n=1,i;
cout<<"enter Num";
cin>>a;
//n=pow(2,a);
for(i=0;i<a;i++)
n*=2;
cout<<n;
}
| Is This Answer Correct ? | 3 Yes | 6 No |
Post New Answer View All Answers
When must you use a pointer rather than a reference?
what is upcasting in C++?
What is a sequence in c++?
What is c++ mutable?
Do you know what are the new features that iso/ansi c++ has added to original c++ specifications?
what is C++ objects?
What is the full form of stl in c++?
What are dynamic type checking?
Distinguish between a # include and #define.
What is the difference between public, private, and protected access?
Can you be bale to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?
What is a v-table?
What is a virtual destructor? Explain the use of it?
Explain container class.
What apps are written in c++?