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 diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?
What are integer variable, floating-point variable and character variable?
write a C program:There is a mobile keypad with numbers 0-9 and alphabets on it. Take input 0f 7 keys and then form a word from the alphabets present on the keys.
What library is sizeof in c?
What is a newline escape sequence?
Write a function expand(s1,s2) that expands shorthand notations like a-z in the string s1 into the equivalent complete list abc...xyz in s2 . Allow for letters of either case and digits, and be prepared to handle cases like a-b-c and a-z0-9 and -a-z. z-a:zyx......ba -1-6-:-123456- 1-9-1:123456789987654321 a-R-L:a-R...L a-b-c:abbc
Is it possible to initialize a variable at the time it was declared?
what will be the output for the following main() { printf("hi" "hello"); }
Explain what is the advantage of a random access file?
What is void c?
What is the difference between declaring a variable and defining a variable?
What is s or c?
What is the size of empty structure in c?
any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()
What is chain pointer in c?