好吧,我又选了一道水题http://acm.hdu.edu.cn/showproblem.php?pid=1012 题目要求打印n分别从0到9的阶乘倒数之和,打印的时候注意控制打印格式,无难度,直接贴代码: 1 #include<stdio.h> 2 #include<stdlib.h> 3 4 int main( ) 5 { 6 7 int i,j; 8 double sum=0,k=1.0; 9 printf( "n e\n- -----------\n");10 for(i=0;i<10;i++)11 {12 if( i==0||i==1 Read More
posted @ 2013-05-01 10:30 paradise in hell Views(165) Comments(0) Diggs(0) Edit