Enter a positive integer to calculate its factorial.
Factorial is a mathematical operation that multiplies a positive integer by all the positive integers below it. It's denoted by an exclamation mark (!) after the number.
The formula for factorial is:
\[ n! = n \times (n-1) \times (n-2) \times ... \times 3 \times 2 \times 1 \]Where:
Let's calculate 5!:
Therefore, 5! = 120
This diagram illustrates the factorial of 5, showing how we multiply all integers from 5 down to 1 to get the result of 120.