mate
mate copied to clipboard
calculate factorial numbers
In mathematics, the factorial of a non-negative integer n, denoted by n!, is the product of all positive integers less than or equal to n. The factorial n! also equals the product of n with the next smaller factorial.
So how does factorial computing work? Example;
5! = 5 * 4 * 3 * 2 * 1 = 120