帮看一个程序,执行答案错误!
#include<stdio.h>long fac(int k)
{ int t;
long f=1;
for(t=1;t<=k;t++)
f*=t;
return f;
}
main()
{ int i;
long s=0,p;
for(i=1;i<=10;i++)
p=fac(i);
s+=1/p;
printf("%f",s);
}
题目是求1/1!+1/2!+1/3!+```+1/10!=???
2010-06-30 23:39
2010-07-01 01:01

2010-07-01 06:50

2010-07-01 08:57
2010-07-06 14:47
2010-07-06 18:28