Answer to Question #14082 in C++ for shalenee

2012-09-04T09:19:26-0400

Question #14082

(Computing e in c++ programming) You can approximate e by 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. (Hint: Since i!= i × (i − 1) × ...× 2 × 1 ,then 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 the previous item divided by i for i = 2, 3, 4, ...)