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
How many keywords are there in c?
What is indirection? How many levels of pointers can you have?
Does free set pointer to null?
Explain the advantages and disadvantages of macros.
Lists the benefits of c programming language?
Can main () be called recursively?
Explain the difference between exit() and _exit() function?
How do I get a null pointer in my programs?
What is operator promotion?
How can you allocate arrays or structures bigger than 64K?
Why string is used in c?
Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?
What is the concatenation operator?
What is the meaning of ?
how to introdu5ce my self in serco