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 an undefined behavior and sequence points

969


Mention the purpose of istream class?

1079


Write a program which uses functions like strcmp(), strcpy()? etc

1061


What is a static element?

1030


Explain operator overloading.

1018


Can we sort map in c++?

975


What is the size of integer variable?

1024


What is the difference between interpreters and compilers?

1128


What are compilers in c++?

1035


Explain the difference between abstract class and interface in c++?

944


What is the use of setfill in c++?

1044


What is copy constructor? Can we make copy constructor private in c++?

1043


Discuss the effects occur, after an exception thrown by a member function is unspecified by an exception specification?

1030


What are 2 ways of exporting a function from a dll?

1141


What are the benefits of c++?

1007