Question: The value of euler's number, e, can be approximated b using this formula:
e = 1+ 1/1! + 1/2! + 1/3! + 1/4! + 1/5!...
Using this formula, write a c++ program that approximates the value of e, using a while loop that terminates when the difference between two successive approximations is less than 10e-9.
This is what I have written and its kinda hard for me to verify my results. Does this look correct to you guys though? I think I have the question answered... just need a second opinion.