#include<stdio.h>
#include<math.h>
int main()
{
int n=1;
float e=1,t=1,f=1;
while (t>=1e-6){
f=f*n;
t=1/f;
e=e+t;
n++;
}
printf("e=%f\n",e);
return 0;
}
#include<math.h>
int main()
{
int n=1;
float e=1,t=1,f=1;
while (t>=1e-6){
f=f*n;
t=1/f;
e=e+t;
n++;
}
printf("e=%f\n",e);
return 0;
}