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
Which control loop is recommended if you have to execute set of statements for fixed number of times?
write a c program thal will find all sequences of length N that produce the sum is Zero, print all possible solutions?
what do you mean by inline function in C?
What is the use of linkage in c language?
What is return in c programming?
What is a const pointer in c?
shorting algorithmS
What are operators in c?
how can use subset in c program and give more example
How can I determine whether a machines byte order is big-endian or little-endian?
Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me
the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?
What functions are used for dynamic memory allocation in c language?
What is the best style for code layout in c?
How many levels of pointers have?