(1)#include void main(){int n=1;float i=1,e=1;for(n=1;n<=50;n++){i=i*n;e=e+1/i;}printf("%f",e);}(2)#include void main(){ int n=1; float i=1,e=1; while(1/i>10e-4) { i=i*n; e=e+1/i; n++; } printf("%f",e);}