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 happens when you make call 'delete this;'?

1064


Can we use clrscr in c++?

1066


What operator is used to access a struct through a pointer a) >> b) -> c) *

1084


Write an algorithm that determines whether or not an almost complete binary tree is a heap.

3897


What is lambda expression c++?

1044


List the features of oops in c++?

1032


Name four predefined macros.

1025


What is atoi?

962


What sorting algorithm does c++ use?

1130


Is there finally in c++?

1088


What is a pointer how and when is it used?

1078


What is the outcome of cout< a) 16 b) 17 c) 16.5

1004


Does c++ support multilevel and multiple inheritances?

992


What is c++ coding?

1184


What is data abstraction? How is it different from data encapsulation?

986