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
How can you increase the size of a dynamically allocated array?
What is c definition?
How do shell structures work?
Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.
What are the difference between a free-standing and a hosted environment?
Can you add pointers together? Why would you?
What is bss in c?
Is it possible to pass an entire structure to functions?
What is the value of uninitialized variable in c?
int i=10; printf("%d %d %d", i, i=20, i);
Explain main function in c?
Tell us two differences between new () and malloc ()?
What are the rules for identifiers in c?
What is auto keyword in c?
what is the c source code for the below output? 5555555555 4444 4444 333 333 22 22 1 1 22 22 333 333 4444 4444 5555555555