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 c/c++ program that takes a 5 digit number and
calculates 2 power that number and prints it?

Answer Posted / suvi

#include<stdio.h>
void main()
{
float a,b;
scanf("%f",&a);
b=a*a;
printf("%.0f",b);

}

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is volatile keyword in c?

1037


Write a program to print fibonacci series using recursion?

1064


What are the disadvantages of external storage class?

1062


What does stand for?

1090


Explain how do you convert strings to numbers in c?

1082


I heard that you have to include stdio.h before calling printf. Why?

1071


Differentiate between a for loop and a while loop? What are it uses?

1189


What are the usage of pointer in c?

1201


Explain zero based addressing.

1038


What are extern variables in c?

995


what is a NULL Pointer? Whether it is same as an uninitialized pointer?

1281


Explain how do you print an address?

1146


Why is #define used?

1278


How do I get an accurate error status return from system on ms-dos?

1130


What is dynamic memory allocation?

1340