Write a program that takes a 5 digit number and calculates 2
power
that number and prints it.



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

Post New Answer

More C Interview Questions

How can I delete a file?

0 Answers  


what is function pointer?

2 Answers   Wipro,


What is substring in c?

0 Answers  


How many keywords are there in c?

0 Answers  


What is nested structure with example?

0 Answers  






Can i use Two or More Main Funtion in any C program.?

4 Answers  


Between macros and functions,which is better to use and why?

0 Answers  


int j =15,i; for (i=1; 1<5; ++i) {printf ("%d%d ",j,i); j = j-3; }

2 Answers  


LOGIC OF Bodmas?

1 Answers  


why programming language C is still used in operating system's kernel??

1 Answers   Wipro,


write a program to display the numbers having digit 9 in the given range from 1 to 100

1 Answers  


Suggesting that there can be 62 seconds in a minute?

0 Answers  


Categories