write a c/c++ program that takes a 5 digit number and
calculates 2 power that number and prints it?
Answer Posted / suvi
#include<stdio.h>
void main()
{
float a,b;
scanf("%f",&a);
b=a*a;
printf("%.0f",b);
}
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
What is volatile keyword in c?
Write a program to print fibonacci series using recursion?
What are the disadvantages of external storage class?
What does stand for?
Explain how do you convert strings to numbers in c?
I heard that you have to include stdio.h before calling printf. Why?
Differentiate between a for loop and a while loop? What are it uses?
What are the usage of pointer in c?
Explain zero based addressing.
What are extern variables in c?
what is a NULL Pointer? Whether it is same as an uninitialized pointer?
Explain how do you print an address?
Why is #define used?
How do I get an accurate error status return from system on ms-dos?
What is dynamic memory allocation?