1 Star 1 Fork 4

懒羊羊 / Algorithm-note

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
5.1.9.c 283 Bytes
一键复制 编辑 原始数据 按行查看 历史
Mr. Subei 提交于 2020-01-12 15:06 . C源码
#include <stdio.h>
int main(){
double x1=2,y1=1;
double i,x2=3,y2=2;
double sum=x1/y1+x2/y2;
for(i=3;i<=20;i++){
double x3=x1+x2;
double y3=y1+y2;
double ele=x3/y3;
sum+=ele;
x1=x2;
y1=y2;
x2=x3;
y2=y3;
}
printf("%.6lf\n",sum);
return 0;
}
C
1
https://gitee.com/yang365/Algorithm-note.git
git@gitee.com:yang365/Algorithm-note.git
yang365
Algorithm-note
Algorithm-note
master

搜索帮助