Question: 3- Write a program that determines and test a factorial function. Use a recursive method for this function. For example: 51-120. (hint: For example, in
3- Write a program that determines and test a factorial function. Use a recursive method for this function. For example: 51-120. (hint: For example, in order to obtain the factorial of a number (nl) the mathematical formula would be: n!-n (n-1)* (n-2) * (n-3).... 1 and in the function factorial we included a call to itself, but only if the argument passed was greater than 1, since, otherwise, the function would perform an infinite recursive loop. (25 pts) Do it in Ct 4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
