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

How many types of scopes are there in c++?

663


What is the syntax for a for loop?

695


What is the full form of stl in c++?

786


How do you invoke a base member function from a derived class in which you have not overridden that function?

698


If a header file is included twice by mistake in the program, will it give any error?

648






What is guard code in c++?

741


How long does it take to get good at leetcode?

762


What is a Default constructor?

1067


List the merits and demerits of declaring a nested class in C++?

692


What language does google use?

693


What are maps in c++?

591


Explain stack & heap objects?

711


What does extern mean in a function declaration in c++?

800


write a corrected statement in c++ so that the statement will work properly. x = y = z + 3a;

1531


what are the iterator and generic algorithms.

1571