Question: C PROGRAMMING Design a program that calculates the mathematical standard e value using the following formula (using do-while,while or for): e = 1 + 1/1
C PROGRAMMING
Design a program that calculates the mathematical standard e value using the following formula (using do-while,while or for):
e = 1 + 1/1! + 1/2! + 1/3! + 1/4! + ...
Calculate number (e)
Calculate the number (e) to the nearest ten terms (the terms in the formula are summable numbers). Print an intermediate print (the value of e alone, to six decimal places) after each term and the result on its own line.
The program output should look like this:
1.000000 2.000000 2.500000 2.666667 2.708333 2.716667 2.718056 2.718254 2.718279 2.718282
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
