Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What things would you remember while making an interface?

1012


Write a program for Divide a number with 2 and Print the output ( NOTE: Check for divide by zero error).

1121


Why is c++ awesome?

1043


What are the rules about using an underscore in a c++ identifier?

1206


Give an example of run-time polymorphism/virtual functions.

1012


You have two pairs: new() and delete() and another pair : alloc() and free(). Explain differences between eg. New() and malloc()

1169


Which is the best c++ software?

1106


How do you remove an element from a set in c++?

1098


Give example of a pure virtual function in c++?

1181


What is a vector c++?

1190


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

1965


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

1147


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?

1042


Is swift a good first language?

1055


Which compiler does turbo c++ use?

1087