In the following algorithm, how many times is the line "z := z + 1" executed if n = 4 and z is an integer?

procedurealgor(z,n)

i = 1

whilei <= 4do

begin

z = z +1

n = n – 2

ifn > 0then

algor(z,n)

i = 1 + 1

end

return(z)

endalgor

Thanks for the help.

Pwr