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
Who discovered c++?
What is pointer in c++ with example?
What is a float in c++?
Can user-defined object be declared as static data member of another class?
Can member data be public?
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.
If you push the numbers (in order) 1, 3, and 5 onto a stack, which pops out first a) 1 b) 5 c) 3
Are strings mutable in c++?
What is the difference between object-oriented programming and procedural programming?
Is c++ an integer?
Can recursive program be written in C++?
How do you write a function that can reverse a linked-list?
What are punctuators in c++?
Is c++ double?
What is const pointer and const reference?