Home Segments Index Top Previous Next

334: Practice

Write a recursive method, factorial, which, when sent to a positive integer, n, answers the factorial of n, written n!, where n!=n * n-1 * ... * 1.