write a program that takes 5 digit no and calculate 2 power
that no and print it.
Answer Posted / kathir
#include<iostream.h>
void main()
{
int a,n=0;
cout<<"Enter the 5 didgit no:"<<endl;
cin>>a;
n=(a*a);
cout<<"The two power given no is:"<<n<<endl;
}
| Is This Answer Correct ? | 4 Yes | 6 No |
Post New Answer View All Answers
How can I learn dev c++ programming?
What is flush c++?
What are the various operations performed on stack?
What is the history of c++?
In the derived class, which data member of the base class are visible?
What is difference between class and function?
What is new in c++?
What do nonglobal variables default to a) auto b) register c) static
Am pass the 10000 records to target in target I will take commit interval 15000 when I was stop the work flow what will happened
What is dev c++ used for?
What is the output of the following program? Why?
Explain the difference between new() and malloc() in c++?
What is the use of setprecision in c++?
Is dev c++ a good compiler?
List the issue that the auto_ptr object handles?