#include void main(){int i=1,n=1;double e=1;for(i=1;1.0/n>=1e-5;i++){n*=i;e+=1.0/n;}printf("e=%f",e);}
#include int main(){ int i=1,t=1; double e=1; while(1.0/t>1e-5) { e += 1.0/t; i++; t *= i; } printf("e=%lf\n",e); return 0;}