-->
当前位置:首页 > 题库

PROGRAMMING:Calculate the approximate value of E

Luz5年前 (2021-05-10)题库424
Write a program, input a smaller real number Delta, use e = 1 + 1 / 1+ 1/2!+ 1/3!+ ⋯+1/n! Calculate the approximate value of e until the absolute value of the last term is less than Delta, and output the approximate value of e at this time.
![ 444444444444444.png](~/ab626245-b076-46af-8f44-368699f51ba3.png)
###Input format:
A smaller real number.
###Output format:
Approximate values required by the title.
###Input example:
```in
zero point zero zero zero one
```
###Output example:
```out
two point seven one eight two seven eight seven six nine eight
```







answer:If there is no answer, please comment