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 / subhashini

void main()
{


long int n,x;
clrscr();
printf(" Enter 5 digit number:");
scanf("%d",&n);
x=2^n;
printf("result: %d",x);
getch();
}

Is This Answer Correct ?    1 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which control loop is recommended if you have to execute set of statements for fixed number of times?

1300


write a c program thal will find all sequences of length N that produce the sum is Zero, print all possible solutions?

2814


what do you mean by inline function in C?

1010


What is the use of linkage in c language?

1013


What is return in c programming?

920


What is a const pointer in c?

1076


shorting algorithmS

2198


What are operators in c?

965


how can use subset in c program and give more example

1933


How can I determine whether a machines byte order is big-endian or little-endian?

1006


Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me

1899


the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?

949


What functions are used for dynamic memory allocation in c language?

1079


What is the best style for code layout in c?

1052


How many levels of pointers have?

991