Answer
Algorithm 1 when it is given n = 5 as input. That is, show all steps used by Algorithm 1 to find 5!,
Work Step by Step
--Suppose that
x = 0.
The program segment first assigns the value 1 to y and then assigns the value x + y = 0 + 1 = 1 to z.