The following loop is supposed to show the factorial of each number
from 1 to n. What is wrong with the following loop. Assume that
n is known and that the factorial function is available.
Let k = 1.
While k <= n do
Display factorial(n).
Relet k = k + 1.
%While