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

int age=35; if(age>80) {Console.WriteLine("Boy you are old");} else {Console.WrieLine("That is a good age");}

1322


Why is c++ not purely object oriented?

1059


What is the maximum combined length of command line arguments including the space between adjacent arguments?

1037


What is object oriented programming (oop)?

1169


Why do we use structure in c++?

1131


What is the role of C++ shorthand's?

1318


What is purpose of abstract class?

1125


What is switch case in c++ syntax?

1154


What is the use of setprecision in c++?

1052


Explain what is oop?

1145


What do you mean by late binding?

1202


What is the purpose of the "delete" operator?

1112


How can you differentiate between inheritance and implementation in c++?

1269


What is the use of data hiding?

1065


When is the copy constructor called?

1201