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 |
What is a lvalue
What is pointer to pointer in c?
How can I get back to the interactive keyboard if stdin is redirected?
What is 1f in c?
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?
What are the application of c?
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);
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
how to print this pyramid * * * * * * * * * * * * *
What is function what are the types of function?
how can we Declare a variable in c without defining it.