4) Write a program that takes a 5 digit number and
calculates 2 power
that number and prints it.
i have done maximum par but i m findind problem in the
commented area.
please help...
Answer Posted / ansh
#include<stdio.h>
void main()
{
int a;
long int b=1;
scanf("%d",&a);
printf("%d\n",a);
b=b<<a;
printf("%lu",b);
getch();
}
| Is This Answer Correct ? | 1 Yes | 5 No |
Post New Answer View All Answers
How can I implement a delay, or time a users response, with sub-second resolution?
Why do we use c for the speed of light?
What is the meaning of typedef struct in c?
What are the application of void data type in c?
What are the application of c?
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
write a program to print largest number of each row of a 2D array
Why do we use stdio h and conio h?
Function calling procedures? and their differences? Why should one go for Call by Reference?
What is huge pointer in c?
Can i use “int” data type to store the value 32768? Why?
Suggesting that there can be 62 seconds in a minute?
Why do we use return in c?
Calculate 1*2*3*____*n using recursive function??
Q.1 write a program to create binary tree 1 to 16 numbers? Q.2 write a program to creat a binary search tree for the member that is given by user?