| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
不知道为什么是ce#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int plus(int n){
int j,z=1;
for (j = 1;j <= n;j++)
z= z*j;
return z;
}
int main(){
int i;
double e=2.5;
printf("n e\n");
printf("- -----------\n");
printf("0 1\n");
printf("1 2\n");
printf("2 2.5\n");
for (i = 3;i <= 9;i++){
e += 1.0/plus(i);
printf("%d %.9f\n",i,e);
}
//system ("pause");
return 0;
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator