Write a program that takes a 5 digit number and calculates 2
power
that number and prints it.
Answer Posted / s.shanmugam24
#include<stdio.h>
#include<conio.h>
#include<math.h>
void main(void)
{
int power,i;
i=2;
clrscr();
printf("enter the power values");
scanf("%d",&power);
i=pow(power);
printf("the power is",i);
}
| Is This Answer Correct ? | 2 Yes | 9 No |
Post New Answer View All Answers
What is the use of ?
What is the difference between text and binary modes?
Why c is called a middle level language?
What is the use of parallelize in spark?
Why we use conio h in c?
The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?
What is the -> in c?
Why c is called a mid level programming language?
Explain what happens if you free a pointer twice?
typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?
If fflush wont work, what can I use to flush input?
What is string in c language?
How can I sort a linked list?
Write a program on swapping (100, 50)
How can I insert or delete a line (or record) in the middle of a file?