For & until loop


#1



I was just confused of that problem while I was doing review

the code below worked to get 1 through 50 for the excerise
a=0
until a > 49 do
a+=1
print a
end


However, as it looked like it below
a=0
until a > 49 do
print a
a+=1
end

the result would be quite different, because I got 0 through 49

Does any one tell me why??? please.
Thank you so much

Replace this line with your code.


#2

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.