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 = k + 1.
While k < n do
Display factorial(k).
Relet k = k + 1.
%While