Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - main.c
Search - main.c - List
求一分数列的和 #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.