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
Is it possible for a member function to delete the pointer, named this?
How does work in c++?
What is the difference between prefix and postfix versions of operator++()?
What is a unnitialised pointer?
Describe Trees using C++ with an example.
Are vectors faster than arrays?
What are the 2 main types of data structures?
What is a float in c++?
How does code-bloating occur in c++?
What does getch() do according to the ANSI C++ standard a) Reads in a character b) Checks the keyboard buffer c) Nothing in particular (Its not defined there)
Program to check whether a word is a sub-string or not of a string typed
Who calls main function?
When one must use recursion function? Mention what happens when recursion functions are declared inline?
Explain what are accessor methods?
what are the iterator and generic algorithms.