(Numerical Analysis) The value of Euler's number, e, can be approximated by using this formula:
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.