Mian issue is you have provided no input for printf. Which compiler are you using?
https://msdn.microsoft.com/en-us/library/wc7014hz.aspx[
^]
#include <stdio.h>
#include <math.h>
double power(double x, double n);
int main(void)
{
int x,n;
printf("insert base: ");
scanf("%ld",&x);
printf("insert power: ");
scanf("%ld",&n);
printf("%ld ^ %ld = %lf\n", x, n, power(x,n));
return 0;
}
double power(double x, double y)
{
return pow(x,y);
}