2022级统计计算机双学位《程序设计原理与C语言》上机作业

1029. Compute e

单点时限: 1.0 sec

内存限制: 256 MB

Compute and output approximate value of $e$ with %.6f format using formula:

$$e = 1+\frac{1}{1!}+\frac{1}{2!}+\frac{1}{3!}+\cdots$$

until the last item is less than $10^{-6}$.