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 ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you determine the length of a string value that was stored in a variable?

647


What is the difference between far and near ?

678


Is main is a keyword in c?

602


What is the use of a conditional inclusion statement in C?

594


Can a pointer be static?

615






What is a dynamic array in c?

587


find out largest elemant of diagonalmatrix

1643


Do array subscripts always start with zero?

776


How a string is stored in c?

581


What are types of functions?

559


What is external variable in c?

607


Difference between malloc() and calloc() function?

652


Are pointers really faster than arrays?

557


Describe dynamic data structure in c programming language?

599


Describe how arrays can be passed to a user defined function

776