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

Is it possible for a member function to delete the pointer, named this?

1085


How does work in c++?

1025


What is the difference between prefix and postfix versions of operator++()?

1026


What is a unnitialised pointer?

1013


Describe Trees using C++ with an example.

1087


Are vectors faster than arrays?

957


What are the 2 main types of data structures?

1063


What is a float in c++?

931


How does code-bloating occur in c++?

1134


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)

1003


Program to check whether a word is a sub-string or not of a string typed

1976


Who calls main function?

1052


When one must use recursion function? Mention what happens when recursion functions are declared inline?

1131


Explain what are accessor methods?

1067


what are the iterator and generic algorithms.

1883