Ok here is the source for a function which according to my book should raise x to the y power.

#include <stdio.h>

double pow(double , double );

int main()

{

double x, y, count, power;

for (count=1; count<=15; ++count)

{

printf("enter the number you would like to use\n", x);

scanf("%lf", &x);

printf("enter the power the number is placed to\n", y);

scanf("%lf", &y);

power = pow( x , y);

printf("the answer is %5.3lf\n", power);

return 0;

}

double pow(double x, double y)

{

return(power);

}

I keep getting 2 error messages the first one says 'pow' local functions not supported the other says unexpected end of file found. Now can anyone tell me where I've went wrong