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
Write a struct time where integer m, h, s are its members?
Give an example of run-time polymorphism/virtual functions.
How to implement is-a and has-a class relationships?
What is c++ best used for?
Why would you use pointers in c++?
What is a forward referencing and when should it be used?
How can you quickly find the number of elements stored in a a) static array b) dynamic array ? Why is it difficult to store linked list in an array?how can you find the nodes with repetetive data in a linked list?
Mention the ways in which parameterized can be invoked.
Should I learn c or c++ or c#?
Write a C++ Program to check whether a number is prime number or not?
Will the following program execute?
What is virtual function? Explain with an example
Define basic type of variable used for a different condition in C++?
What is the return value of the insertion operator?
What will strcmp("Astring", "Astring"); return a) A positive value b) A negative value c) Zero