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
Write a program to identify if a given binary tree is balanced or not.
What does 1f stand for?
How can I sort a linked list?
please explain every phase in the "SDLC" in the dotnet.
How can I split up a string into whitespace-separated fields?
What is the difference between malloc calloc and realloc in c?
please give me some tips for the placement in the TCS.
In C language what is a 'dangling pointer'?
what do the 'c' and 'v' in argc and argv stand for?
Declare the structure which contains the following members and write in C list of all students who score more than 75 marks. Roll No, Name, Father Name, Age, City, Marks.
what is the c source code for the below output? 10 10 10 10 10 10 10 10 10 10 9 9 7 6 6 6 6 6 6 9 7 5 9 7 3 2 2 5 9 7 3 1 5 9 7 3 5 9 7 4 4 4 4 5 9 7 8 8 8 8 8 8 8 8 9
Explain output of printf("Hello World"-'A'+'B'); ?
Why calloc is better than malloc?
What is data structure in c and its types?
the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?