填空题

函数void fun(float *sn,int n)的功能是:根据以下公式计算s,计算结果通过形参指针 sn传回;n通过形参传入,n的值大于或等于0。请填空。


void fun(float *sn,int n)
float s=0.0,w,f=-1.0;
int i;
for(i=0;i<=n;i++)
f= 【13】 * f;
w=f/(2*i+1);
s+=w;
【14】 =s;

【参考答案】

-1 * sn