factorial ( n -- n! )


Vocabulary
math.combinatorics

Inputs and outputs
na non-negative integer
n!an integer


Word description
Outputs the product of all positive integers less than or equal to n.

Examples
USING: math.combinatorics prettyprint ; 4 factorial .
24


Definition