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
Give me the code of in-order recursive and non-recursive.
What does != Mean in c?
Explain the use of 'auto' keyword in c programming?
Explain that why C is procedural?
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
Is malloc memset faster than calloc?
what is the different bitween abap and abap-hr?
What is meant by recursion?
Once I have used freopen, how can I get the original stdout (or stdin) back?
What is a substring in c?
What is "Duff's Device"?
Do you know the purpose of 'register' keyword?
Why is this loop always executing once?
Are global variables static in c?
What do you mean by invalid pointer arithmetic?