不懂就问
#include<stdio.h>double E=2.143;
double power(int n);
void main(void)
{
int n;
printf("\nEnter n:");
scanf("%d",&n);
printf("result=%lf\n",power(n));
}
double power (int n)
{if(n==0)
return 1.0;
else
return (E*power(n-1));
}以上是求e的n次方的代码 (我想问的是“double power(int n);”这小段代码的作用)