hi, I have two codes that are the right answer but something confuses me, here are my codes:

i = 1

while i < 51 do

print i

i += 1

end

and my second code is:

z = 1

until z == 51 do

print z

z += 1

end

ok, so my question is, why do the codes need to contain i < 51 or z == 51 instead of 50?