Home Segments Top Top Previous Next

436: Practice

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