Find the factorial of a number.
Every whole number from n down to 1 is multiplied together.
n!: n × (n−1) × (n−2) × ... × 1
What is 0!?
0! is defined as 1, by mathematical agreement. This keeps formulas like combinations and permutations working correctly at the edge cases.