Home Segments Index Top Previous Next

355: Practice

Write a recursive program that accepts a positive integer, n, and computes the factorial of n, written n!, where n!=n * n-1 * ... * 1.