You can approximate e using the following summation: Write a program that displays the e value for

Question:

You can approximate e using the following summation:

Write a program that displays the e value for i = 1, 2, …, and 20. Format the number to display 16 digits after the decimal point. (Hint: Because i! = i Χ (i - 1) Χ c Χ 2 Χ 1, then

Initialize e and item to be 1, and keep adding a new item to e. The new item is the previous item divided by i, for i >= 2.)

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: