有兄弟给讲解一下吗?
#include <stdio.h>
#define EPS 1e-6
int main()
{
double e, item;
int i,x,k;
scanf("%d",&x);
item = 1.0;
e = 1.0;
i =1;
k=x;
while (k/item>=EPS) {
item = item * i;
e = e + k/item;
i++;
k=k*x;
}
printf("\ne=%lf\n", e);
printf("共累加了%d项\n", i-1);
return 0;
}