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

Write a struct time where integer m, h, s are its members?

932


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

973


How to implement is-a and has-a class relationships?

978


What is c++ best used for?

1031


Why would you use pointers in c++?

1114


What is a forward referencing and when should it be used?

1121


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?

1255


Mention the ways in which parameterized can be invoked.

908


Should I learn c or c++ or c#?

962


Write a C++ Program to check whether a number is prime number or not?

1078


Will the following program execute?

1003


What is virtual function? Explain with an example

1045


Define basic type of variable used for a different condition in C++?

1072


What is the return value of the insertion operator?

1105


What will strcmp("Astring", "Astring"); return a) A positive value b) A negative value c) Zero

1068