1⼀1*4+1⼀4*7+1⼀7*10+......+1⼀31*34的简便运算

1/1*4+1/4*7+1/7*10+......+1/31*34的简便运算
2025-01-04 00:04:16
推荐回答(1个)
回答1:

float fun(float n){float i= 1;float sum = 0;
for(while i <= n)
{ sum+= 1f / (a * (a+3)); a+=3;}} float result = fun(31f);