Factorial
Easy · Recursion
Write a function factorial that returns n! (the product of all whole numbers from 1 to n). The factorial of 0 is 1.
Next: Swap First and Last
Easy · Recursion
Write a function factorial that returns n! (the product of all whole numbers from 1 to n). The factorial of 0 is 1.
Next: Swap First and Last