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 a class template?

1024


what is a reference variable in C++?

1150


If you don’t declare a return value, what type of return value is assumed?

885


What is the use of ::(scope resolution operator)?

1016


What is null pointer and void pointer?

1004


Write a program in c++ to print the numbers from n to n2 except 5 and its multiples

2422


Can comments be longer than one line?

1017


Explain the advantages of using friend classes.

1088


What is vector string in c++?

1034


Is c++ faster than c?

975


How is data hiding achieved in c++?

1022


Describe the setting up of my member functions to avoid overriding by the derived class?

1069


What parameter does the constructor to an ofstream object take?

1001


which operator is used for performing an exponential operation a) > b) ^ c) none

983


What is c++ coding?

1123