Factorial

Computes n! as the product of all positive integers from 1 to n.

n!

120

Advertisement

Formula

n! = 1 × 2 × … × n

Example: 5! = 120

Methodology

n! = 1 × 2 × … × n, with 0! = 1 by definition.

Example

5! = 120.

Related calculators