Return the Factorial

Published by Pickle in

Create a function that takes an integer and returns the factorial of that integer. That is, the integer multiplied by all positive lower integers.

Examples

Factorial(3) ➞ 6

Factorial(5) ➞ 120

Factorial(12) ➞ 479001600

Notes

Assume all inputs are greater than or equal to 0.

Watch a quick demo on how Edabit works.