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 an expression?
Why we not create function inside function.
What is include directive in c?
Differentiate call by value and call by reference?
Is linux written in c?
How do I swap bytes?
What does dm mean sexually?
why use "return" statement a) on executing the return statement it immediately transfers the control back to the calling program b) it returns the value present in the parentheses return, to the calling program c) a & b d) none of the above
How will you write a code for accessing the length of an array without assigning it to another variable?
What is the purpose of realloc()?
hai iam working in sap sd module for one year and working in lumax ind ltd in desp department but my problem is i have done m.b.a in hr/marketing and working sap sd there is any combination it. can you give right solution of my problem. and what can i do?
to print the salary of an employee according to follwing calculation: Allowances:HRA-20% of BASIC,DA-45% of BASIC,TA-10%. Deductions:EPF-8% of BASIC,LIC-Rs.200/-Prof.Tax:Rs.200/- create c language program?
What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?
How will you divide two numbers in a MACRO?
Can we add pointers together?