factorial
Find the factorial of a given number
will return the factorial of a given number. There is no custom return type, the function always returns an integer.
After n = 19, the function doesn't work anymore, as the numbers are too large for the integer sizing. Instead, use factorialL(n) for larger numbers.
Last updated