Write a program that takes a 5 digit number and calculates
2 power that number and prints it
Answer Posted / nikita
#include<stdio.h>
#include<math.h>
void main()
{
int a;
double c;
scanf("%5d",&a);
c=pow(a,2);
printf("%f",c);
}
| Is This Answer Correct ? | 5 Yes | 3 No |
Post New Answer View All Answers
What are types of functions?
How do you view the path?
What is #include called?
Explain modulus operator. What are the restrictions of a modulus operator?
what is ur strangth & weekness
If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above
What is sizeof array?
What is the difference between the expression “++a” and “a++”?
Define Array of pointers.
What are variables and it what way is it different from constants?
When should a type cast not be used?
In C programming, what command or code can be used to determine if a number of odd or even?
main use of recursive function a) processing speed high b) reduce program length/reduce repeated statements c) if you do not, use iterative methods like, for, while or do-while d) all the above
What are the types of data types and explain?
What is the value of c?