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 is the general form of a C program?
#include
What is the difference between void main and main in c?
Can we change the value of static variable in c?
Which is an example of a structural homology?
When can you use a pointer with a function?
How to define structures? ·
Explain what is a static function?
What is build process in c?
the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters
Why header file is used in c?
Explain two-dimensional array.
Are global variables static in c?
What is && in c programming?
What is keyword with example?