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...

4) Write a program that takes a 5 digit number and
calculates 2 power
that number and prints it.

Answer Posted / deepshree sinha

#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
int n,m
printf("enter any five digit number");
scanf("%d ",&n);
m=pow(2,n);
printf("m=%d",m);
getch();
}

Is This Answer Correct ?    5 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Give me the code of in-order recursive and non-recursive.

1421


What does != Mean in c?

1093


Explain the use of 'auto' keyword in c programming?

1183


Explain that why C is procedural?

1192


why use "return" statement a) on executing the return statement it immediately transfers the control back to the calling program b) it returns the value present in the parentheses return, to the calling program c) a & b d) none of the above

1149


Is malloc memset faster than calloc?

1128


what is the different bitween abap and abap-hr?

2421


What is meant by recursion?

1100


Once I have used freopen, how can I get the original stdout (or stdin) back?

1119


What is a substring in c?

1083


What is "Duff's Device"?

1221


Do you know the purpose of 'register' keyword?

1068


Why is this loop always executing once?

1110


Are global variables static in c?

1218


What do you mean by invalid pointer arithmetic?

1130