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
What happens when you make call 'delete this;'?
Can we use clrscr in c++?
What operator is used to access a struct through a pointer a) >> b) -> c) *
Write an algorithm that determines whether or not an almost complete binary tree is a heap.
What is lambda expression c++?
List the features of oops in c++?
Name four predefined macros.
What is atoi?
What sorting algorithm does c++ use?
Is there finally in c++?
What is a pointer how and when is it used?
What is the outcome of cout< a) 16 b) 17 c) 16.5
Does c++ support multilevel and multiple inheritances?
What is c++ coding?
What is data abstraction? How is it different from data encapsulation?