Write a program that takes a 5 digit number and calculates 2
power
that number and prints it.
Answer / aravind
#include<stdio.h>
#include<math.h> /*I am not sure whether this lib fun is gud*/
int main()
{
int num=12345,result;
result=pow(12345,2);
printf("result=%d",result);
}
Is This Answer Correct ? | 3 Yes | 4 No |
How can I delete a file?
what is function pointer?
What is substring in c?
How many keywords are there in c?
What is nested structure with example?
Can i use Two or More Main Funtion in any C program.?
Between macros and functions,which is better to use and why?
int j =15,i; for (i=1; 1<5; ++i) {printf ("%d%d ",j,i); j = j-3; }
LOGIC OF Bodmas?
why programming language C is still used in operating system's kernel??
write a program to display the numbers having digit 9 in the given range from 1 to 100
Suggesting that there can be 62 seconds in a minute?