函数voidfun(float*sn intn)的功能是:根据以下公式计算S 计算结果通过形参指针sn传回;n

计算机 指针,公式,函数 已帮助 人

函数 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=0;

for(i=0; i<=n; i++)

{ f=()* f;

w=f/(2*i+1);

s+=w; }

()=s;}

热搜:float类型能表示的最大正整数是