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
Difference between linking and loading?
What are the different properties of variable number of arguments?
please give me a VIRTUSA sample palcement papers.... you will only send TECHNICAL SECTION..... that is help for me Advance Thanks........................
Which is not valid in C a) class aClass{public:int x;}; b) /* A comment */ c) char x=12;
Why do we use return in c?
What is identifier in c?
Write a C program to count the number of email on text
How many header files are in c?
Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?
What is the difference between printf and scanf )?
Is this program statement valid? INT = 10.50;
find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2
What is variables in c?
where are auto variables stored? What are the characteristics of an auto variable?
What is calloc malloc realloc in c?