#include <stdio.h> int main () { float e,a; int i,j; j=0;e=1;a=1; for(i=1;1/a>1e-5;i++) {a=i*a;e=1/a+e;j++;} printf("%f,n=%d\n",e,j); return 0; }