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

Differentiate between a structure and a union.

1333


Write a program to check prime number in c programming?

1147


What does the file stdio.h contain?

1119


what are bit fields in c?

1825


Explain high-order bytes.

1179


Why doesnt this code work?

1123


What is a good way to implement complex numbers in c?

1091


What is the use of pragma in embedded c?

1098


Why do we write return 0 in c?

1128


What is the difference between printf and scanf )?

1150


program to find out date after adding 31 days to a date in the month of febraury also consider the leap year

3148


write a program to input 10 strings and compare without using strcmp() function. If the character of one string matches with the characters of another string , sort them and make it a single string ??? example:- str1="Aakash" st2="Himanshu" str="Uday" output:- Aakashimanshuday (please post the answer as quickly as possible)

2150


What is queue in c?

1157


c programs are converted into machine language with the help of a) an interpreter b) a compiler c) an operatinf system d) none of the above

1321


What is fflush() function?

1190