The Factorial is the product of all positive integers up to a specified odd positive integer. The mathematical notation is n!.
n!
n is a non-negative Integer.
n
mctad.factorial(n)
Check that n is a non-negative Integer.
This is a simple, iterative implementation rather than a recursive implementation.
Factorial
The Factorial is the product of all positive integers up to a specified odd positive integer. The mathematical notation is
n!
.Assumptions
n
is a non-negative Integer.Use
mctad.factorial(n)
Inline Comments