Write a program that takes a 5 digit number and calculates
2 power
that number and prints it.
Answer Posted / sushant shrivastava
include<math.h>
include<stdio.h>
int main()
{
int i,num;
printf("Enter the value of i");
scanf("%d",&i)
num=POW(i,2);
printf("%d%d",num);
}
Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What is the -> in c?
How can I avoid the abort, retry, fail messages?
Explain what is the difference between text files and binary files?
regarding pointers concept
What is break statement?
What does the function toupper() do?
How do you convert strings to numbers in C?
Write a progarm to find the length of string using switch case?
Give differences between - new and malloc() , delete and free() ?
Explain how can you tell whether a program was compiled using c versus c++?
What is the scope of global variable in c?
Explain null pointer.
What is meant by initialization and how we initialize a variable?
Do string constants represent numerical values?
how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software