Q: To find the value of one number raised to another number using the power function.
#include
#include
#include
void main ()
{
int a,b,c;
printf("enter first no.");
scanf("%d",&a);
printf("enter second no.");
scanf("%d",&b);
c=pow(a,b);
printf("%d",c);
getch();
}
No comments:
Post a Comment