Factorial function

The factorial function (symbol: !) says to multiply all whole numbers from our chosen number down to 1.

Examples:

Special case 0

It is generally agreed that 0!=1.

It can be explained following this logic:

n!=n×(n1)!

1!=1×(11)!
1!=1×0!

Or also:
0!=1!1=11=1

References

Math is fun
Vedantu