下列给定,函数fun的功能是:根据整型形参n,计算如下公式的值。 A1=1,A2=1/(1+A1),A3=1/(1+A2),...,An=1/(1+A(n-1)) 例如,若n=10,则应输出0.617977。 ”/********found*****/”之后所指的语句有错,请选择下列正确的语句替换。 #include #include #include /*************found**************/ int fun(int n) { float A=1;int i; for(i=2;i<=n;i++) A=1.0/(1+A); return A; } void main() { int n; system("CLS"); printf("\nPlease enter n: "); scanf("%d",&n); printf("A%d=%lf\n",n,fun(n)); } A. float fun(int n) B. int fun(int n); C. int* fun(int n) D. int fun(int *n)