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
Write a C program to accept a matrix of any size. Find the frequency count of each element in the matrix and positions in which they appear in the matrix
What are extern variables in c?
Explain how can a program be made to print the line number where an error occurs?
What are multibyte characters?
What are the keywords in c?
What is the difference between functions getch() and getche()?
What is dynamic variable in c?
in case any function return float value we must declare a) the function must be declared as 'float' in main() as well b) the function automatically returned float values c) function before declared 'float' keyword d) all the above
Describe the complexity of Binary search, Quicksort and various other sorting and searching techniques..
What is %g in c?
What is define directive?
What do you mean by scope of a variable in c?
What is "Duff's Device"?
How can variables be characterized?
How many types of operators are there in c?