> 其他 >
编写函数,根据整型形参m的值,计算如下的公式值 t=1-1/(2*2)-1/(3*3)-```-1/(m*m)
人气:105 ℃ 时间:2020-03-26 11:28:08
解答
#include "stdio.h"
double sum(int m)
{
\x09int i;
\x09double t;
\x09for(i=2,t=1.0;i
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版