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

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

筛选

1018折磨我是不是C语言

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main (){ double t,g,i,a=1,b=1,x,y=0;scanf("%lf",&x);    for (i=1……

有规律的数列求和(c语言)

摘要:解题思路:假设分子为a,分母为b。Sn就为(a/b)+((a+b)/a)+(((a+b)+a)/(a+b))+......按照这个规律来设计代码。注意事项:参考代码:#include <stdio.h……

有规律的数列求和

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){    int n;    cin>>……

1018c语言代码

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int N,i,j; double m=3,n=2,t,sum=2/1,s=0; scanf("%d",&N);……

新手小白C语言之路

摘要:解题思路:do while循环注意事项:初始值的设立参考代码:#include<stdio.h>int main(){    int n,i=0;    double s,x,a=2.0,b=1.0;……