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
What does it mean to declare a member variable as static?
If a base class is an adt, and it has three pure virtual functions, how many of these functions must be overridden in its derived classes?
daily Routine of father
What's c++ used for?
What is null pointer and void pointer and what is their use?
What do you mean by “this” pointer?
Why is standard template library used?
What is the basic of c++?
Is c++ primer good for beginners?
What do you mean by volatile and mutable keywords used in c++?
Is dev c++ free?
Define the process of error-handling in case of constructor failure?
What is size_type?
Explain container class.
What is the correct syntax for inheritance a) class aclass : public superclass b) class aclass inherit superclass c) class aclass <-superclass