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


Please Help Members By Posting Answers For Below Questions

What is the -> in c?

778


How can I avoid the abort, retry, fail messages?

855


Explain what is the difference between text files and binary files?

853


regarding pointers concept

1798


What is break statement?

841


What does the function toupper() do?

862


How do you convert strings to numbers in C?

918


Write a progarm to find the length of string using switch case?

1826


Give differences between - new and malloc() , delete and free() ?

843


Explain how can you tell whether a program was compiled using c versus c++?

771


What is the scope of global variable in c?

740


Explain null pointer.

804


What is meant by initialization and how we initialize a variable?

798


Do string constants represent numerical values?

1122


how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software

3036