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 a 5 digit number and calculates 2
power that number and prints it.

Answer Posted / ayushi rastogi

/* We assume that user enter 5 digit No */

#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
double No,length=2;
double pwrNo;
printf("Please Enter the 5 digit No.:");
printf("\n");
scanf("%d",&No);
pwrNo=pow(No,2);
printf("\n");
printf("Power of %u No is %u",No,pwrNo);

}

Is This Answer Correct ?    6 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of object in c++?

1157


What is a wchar_t in c++?

1218


On throwing an exception by the animal constructor in p = new animalq, can memory leak occur?

1189


Is rust better than c++?

1173


True or false, if you keep incrementing a variable, it will become negative a) True b) False c) It depends

2440


What does namespace mean in c++?

1145


What are c++ manipulators?

1123


Is java the same as c++?

1038


What is the best ide for c++?

1151


What is encapsulation in c++ with example?

1047


How do I get good at c++ programming?

1251


What does ctime() do?

1215


what kind of projects are suitable for c and c++

1095


What is a class definition?

1123


Define private, protected and public access control.

1170