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 are manipulators in c++ with example?

1058


Why c++ is so important?

1079


What are signs of manipulation?

1065


Describe the process of creation and destruction of a derived class object?

1113


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

1084


What is runtime polymorphism in c++?

1155


How is modularity introduced in C++?

1209


What is a storage class? Mention the storage classes in c++.

1022


How can you quickly find the number of elements stored in a dynamic array? Why is it difficult to store linked list in an array?

1033


How many types of classes are there in c++?

1038


What is atoi in c++?

1072


What is binary search in c++?

1028


How does a copy constructor differs from an overloaded assignment operator?

1035


How does the copy constructor differ from the assignment operator (=)?

1141


What is the use of bit fields in structure declaration?

982