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
What are linker error?
What is the usage of the pointer in c?
What do you mean by a local block?
Which is best book for data structures in c?
Explain how can type-insensitive macros be created?
write a program using linked list in which each node consists of following information. Name[30] Branch Rollno Telephone no i) Write the program to add information of students in linked list
What is bash c?
What is unsigned int in c?
Explain how can you determine the size of an allocated portion of memory?
Why is c called a structured programming language?
Why is a semicolon (;) put at the end of every program statement?
What is atoi and atof in c?
When a c file is executed there are many files that are automatically opened what are they files?
What is c++ used for today?
Explain what is the benefit of using const for declaring constants?