Exercise 30 defines the number e. The value of e can be approximated using the following expression:
where n is a positive integer. Write a program that uses this formula to approximate the value of e. Test your program for n = 4, 8, 10, and 12.
Reference:
Let n be an integer. The value of the expression
between certain values of n and then compare the values with e. For example, you can compute the values of the expression between 100 and 10000 with an increment of 100, or between
1000 and 1000000 with an increment of 1000.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.