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 an auto keyword in c?
a sequence of bytes with one to one corrspondence to those in the external device a) sequential addressing b) address c) byte code d) none
Which control loop is recommended if you have to execute set of statements for fixed number of times?
What are data types in c language?
What is the usage of the pointer in c?
What are the differences between new and malloc in C?
The performance of an operation in several steps with each step using the output of the preceding step a) recursion b) search c) call by value d) call by reference
What math functions are available for integers? For floating point?
i want to switch my career from quailty assurance engineering to development kindly guide me from which programming language its better for me to start plz refer some courses or certifications too i have an experience of 1.5 yrs in QA field.Kindly guide me
What is the difference between mpi and openmp?
Which is best book for data structures in c?
what are enumerations in C
write a program to rearrange the array such way that all even elements should come first and next come odd
please explain every phase in the "SDLC" in the dotnet.
Are pointers integers in c?