Question: You can approximate e using the following series: e = 1 + 1/1! + 1/2! + 1/3! + 1/4! + + 1/i! Write a program
You can approximate e using the following series: e = 1 + 1/1! + 1/2! + 1/3! + 1/4! + + 1/i! Write a program that displays the e value for i = 10000, 20000, , and 100000. 1/i! is 1/i (i - 1)! Initialize e and item to be 1 and keep adding a new item to e. The new item is previous item divide by i for i = 2, 3, 4, )
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
