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

Answer Posted / nikita

#include<stdio.h>
#include<math.h>
void main()
{
int a;
double c;
scanf("%5d",&a);
c=pow(a,2);
printf("%f",c);
}

Is This Answer Correct ?    5 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the general form of a C program?

1070


#include int main(){ int i=10; int *ptr=&i; *ptr=(int *)20; printf("%d",i); return 0; } Output: 20 can anyone explain how came the output is 20

1773


What is the difference between void main and main in c?

1209


Can we change the value of static variable in c?

1078


Which is an example of a structural homology?

1378


When can you use a pointer with a function?

1154


‎How to define structures? · ‎

1147


Explain what is a static function?

1158


What is build process in c?

1206


the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters

2348


Why header file is used in c?

1158


Explain two-dimensional array.

1130


Are global variables static in c?

1218


What is && in c programming?

1227


What is keyword with example?

1123