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

What is a lvalue

0 Answers   Global Logic,


What is pointer to pointer in c?

0 Answers  


How can I get back to the interactive keyboard if stdin is redirected?

0 Answers  


What is 1f in c?

0 Answers  


How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?

2 Answers   Aricent, Manipal University,


What is the right type to use for boolean values in c?

0 Answers  


What are the application of c?

0 Answers  


a=10;b= 5;c=3;d=3; if(a printf(%d %d %d %d a,b,c,d) else printf("%d %d %d %d a,b,c,d);

0 Answers   Wilco,


suppose we use switch statement and we intilize years name using enum statement like(jan,feb,mar,------dec) we take integer value as an input .question is that the month which we analyz is from 0 to 11 bt if i enter 12 than how he again starts from begning and print jan

1 Answers  


how to print this pyramid * * * * * * * * * * * * *

2 Answers  


What is function what are the types of function?

0 Answers  


how can we Declare a variable in c without defining it.

1 Answers   TCS,


Categories