- The Factorial Of An Integer Is The Product Of That Integer Multiplied By All The Positive Non Zero Integers Less Than Th 1 (32.27 KiB) Viewed 23 times
The factorial of an integer is the product of that integer multiplied by all the positive non-zero integers less than th
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
The factorial of an integer is the product of that integer multiplied by all the positive non-zero integers less than th
The factorial of an integer is the product of that integer multiplied by all the positive non-zero integers less than that integer. So, 5! (! is the mathematical symbol for factorial) is 5 * 4 * 3*2*1. 4! is 4*3*2*1, so 5! could be written as 5*4!. So a recursive definition of factorial is n! is n*(n-1)!, as long as n >1. 1! is 1. What is the recursive call for this function (fact)? a. fact(n)*n; b. fact(n-1)*n; C. (n-1)*fact(n) d. fact(n-2)*(n-1)