factorial ( n -- n! )


Vocabulary
math.combinatorics

Inputs
na non-negative integer


Outputs
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