Write a program that takes a 5 digit number and calculates 2
power
that number and prints it.

Answer Posted / s.shanmugam24

#include<stdio.h>
#include<conio.h>
#include<math.h>
void main(void)
{
int power,i;
i=2;
clrscr();
printf("enter the power values");
scanf("%d",&power);
i=pow(power);
printf("the power is",i);
}

Is This Answer Correct ?    2 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?

1011


What are the uses of null pointers?

779


How do you print an address?

981


Write a program to input the price of 1 burger and the number of burgers eaten by a group of friends .print the total amount to be paid by the group?

779


Explain how do you sort filenames in a directory?

801


What is sizeof array?

811


Multiply an Integer Number by 2 Without Using Multiplication Operator

543


If fflush wont work, what can I use to flush input?

840


any restrictions have on the number of 'return' statements that may be present in a function. a) no restriction b) only 2 return statements c) only 1 return statements d) none of the above

910


What's the right way to use errno?

849


What does the c in ctime mean?

791


What would happen to X in this expression: X += 15; (assuming the value of X is 5)

1659


What is return in c programming?

717


What are the types of i/o functions?

963


Explain the difference between the local variable and global variable in c?

828