题解 1018: [编程入门]有规律的数列求和

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

几行代码搞定,简单易懂

摘要:解题思路:注意事项:参考代码:n = int(input())a,s,d= 0,0,0m,l = 2,1for i in range(n):    a,s = m,l    d += a/s    m……

有规律的数列求和(C代码)

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){    int up=2, down=1,n;    double sum=0;      //定义    sc……