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.

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!