#include int main(){ double frac=1.0,x=1.0,num=1.0,e=0.0; while(x>=1e-6) { e+=x; num++; frac*=num; x=1.0/frac; } printf("e=:%lf",e);}