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
If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?
What are the uses of null pointers?
How do you print an address?
Write a program to input the price of 1 burger and the number of burgers eaten by a group of friends .print the total amount to be paid by the group?
Explain how do you sort filenames in a directory?
What is sizeof array?
Multiply an Integer Number by 2 Without Using Multiplication Operator
If fflush wont work, what can I use to flush input?
any restrictions have on the number of 'return' statements that may be present in a function. a) no restriction b) only 2 return statements c) only 1 return statements d) none of the above
What's the right way to use errno?
What does the c in ctime mean?
What would happen to X in this expression: X += 15; (assuming the value of X is 5)
What is return in c programming?
What are the types of i/o functions?
Explain the difference between the local variable and global variable in c?