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


Please Help Members By Posting Answers For Below Questions

Do you know about C++ 11 standard?

633


Explain one-definition rule (odr).

649


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

1512


Who made c++?

611


Explain the use of vtable.

618






What is the role of copy constructor in copying of thrown objects?

598


What is the full form of dos?

568


Can a Structure contain a Pointer to itself?

608


Will this c++ program execute or not?

601


Why is standard template library used?

584


Why do we use double in c++?

601


How should a contructor handle a failure?

688


What is a responder chain?

574


Who discovered c++?

558


What is the advantage of c++ over c?

562