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
Do you know about C++ 11 standard?
Explain one-definition rule (odr).
Write a program which is required to process the time of a clock in hours and minutes, entered from the keyboard. With this program, there are two requirements for any data entered by a user: 1. The data must be of the correct type (in this case, two ints). 2. The data must be in the correct range: this means that, for the minutes, negative numbers and any number above 59 must be rejected; for the hours, negative numbers and any number above 23 must be rejected. Output error message for invalid data input. Output the time one and a half hour after the time input. i.e. Hour: 22 Min: 32 One and a half hour after 22:32 is 00:02
Who made c++?
Explain the use of vtable.
What is the role of copy constructor in copying of thrown objects?
What is the full form of dos?
Can a Structure contain a Pointer to itself?
Will this c++ program execute or not?
Why is standard template library used?
Why do we use double in c++?
How should a contructor handle a failure?
What is a responder chain?
Who discovered c++?
What is the advantage of c++ over c?