如题所述
#include <stdio.h>
void main()
{ int i, t=1;
double e=1.0;
for(i=1;t>=0.000001;i++)
{
t*=i;
e+=(double)1/t;
}
printf("输出e的值%f",e);