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

Who discovered c++?

582


What is pointer in c++ with example?

533


What is a float in c++?

555


Can user-defined object be declared as static data member of another class?

570


Can member data be public?

609






Snake Game: This is normal snake game which you can find in most of the mobiles. You can develop it in Java, C/C++, C# or what ever language you know.

2452


If you push the numbers (in order) 1, 3, and 5 onto a stack, which pops out first a) 1 b) 5 c) 3

861


Are strings mutable in c++?

708


What is the difference between object-oriented programming and procedural programming?

714


Is c++ an integer?

592


Can recursive program be written in C++?

653


How do you write a function that can reverse a linked-list?

586


What are punctuators in c++?

667


Is c++ double?

584


What is const pointer and const reference?

611