Write a program that takes a 5 digit number and calculates 2
power
that number and prints it.
Answer Posted / 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 View All Answers
what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)
Explain what does the function toupper() do?
code for find determinent of amatrix
What is page thrashing?
What are the two types of functions in c?
What is the benefit of using const for declaring constants?
What are structure members?
What is %d called in c?
Where we use clrscr in c?
What is string constants?
What are header files in c programming?
#define MAX(x,y) (x) >(y)?(x):(y) main() { inti=10,j=5,k=0; k= MAX(i++,++j); printf("%d..%d..%d",i,j,k); }
what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values
What should malloc() do?
write a progrmm in c language take user interface generate table using for loop?