/* to find power */
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
int main()
{
float a,b,pw;
printf("Enter base: ");
scanf("%f",&a);
printf("Enter index: ");
scanf("%f",&b);
pw=pow(a,b);
printf("%f to the power %f is %f: ",a,b,pw);
system("pause");
return 0;
}
No comments:
Post a Comment