填空题 C语言
题号 #149471

函数 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;}

进入在线模考

参考答案

暂无

答案解析

-1;*sn

你可能感兴趣的试题

找试题 · 找答案 · 找资料 在线模考