Question: 5-2: Factorial Let n be a nonnegative integer. The factorial of n, written nt is defined by 0-1! = 1 .2.3 . . . n
5-2: Factorial Let n be a nonnegative integer. The factorial of n, written nt is defined by 0-1! = 1 .2.3 . . . n if n 21 . For example, 4|-12.3-4-24, write a program that prompts the user to enter a nonnegative integer and outputs the factorial of the mumber, then find the approximate value of the number e using the read input as n in the approximating equation below 2 3 (e is an irrational number=2.7 1 8281 827.. used in exponential growth and decay problems
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
