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 things would you remember while making an interface?
Write a program for Divide a number with 2 and Print the output ( NOTE: Check for divide by zero error).
Why is c++ awesome?
What are the rules about using an underscore in a c++ identifier?
Give an example of run-time polymorphism/virtual functions.
You have two pairs: new() and delete() and another pair : alloc() and free(). Explain differences between eg. New() and malloc()
Which is the best c++ software?
How do you remove an element from a set in c++?
Give example of a pure virtual function in c++?
What is a vector c++?
Write a program which is required to process the time of a clock in hours and minutes, entered from the keyboard. With this program, there are two requirements for any data entered by a user: 1. The data must be of the correct type (in this case, two ints). 2. The data must be in the correct range: this means that, for the minutes, negative numbers and any number above 59 must be rejected; for the hours, negative numbers and any number above 23 must be rejected. Output error message for invalid data input. Output the time one and a half hour after the time input. i.e. Hour: 22 Min: 32 One and a half hour after 22:32 is 00:02
How do you invoke a base member function from a derived class in which you have not overridden that function?
How can you quickly find the number of elements stored in a dynamic array? Why is it difficult to store linked list in an array?
Is swift a good first language?
Which compiler does turbo c++ use?