CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - main.c
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - main.c - List
[
Other
]
C语言书 p129 6.8题 有一分数列
DL : 0
求一分数列的和 #include<stdio.h> #include <math.h> void main() { float e=0; int a,b,i=0; a=2;b=1; while(i<20) { e=e+a/b; a=a+b; b=a-b; i++; } printf("前20项之和为%f\n",e); }
Date
: 2013-12-02
Size
: 188byte
User
:
xiaoyidexiaoxin
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.