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
How many types of scopes are there in c++?
What is the syntax for a for loop?
What is the full form of stl in c++?
How do you invoke a base member function from a derived class in which you have not overridden that function?
If a header file is included twice by mistake in the program, will it give any error?
What is guard code in c++?
How long does it take to get good at leetcode?
What is a Default constructor?
List the merits and demerits of declaring a nested class in C++?
What language does google use?
What are maps in c++?
Explain stack & heap objects?
What does extern mean in a function declaration in c++?
write a corrected statement in c++ so that the statement will work properly. x = y = z + 3a;
what are the iterator and generic algorithms.