Looping with 'Until'


#1

https://www.codecademy.com/en/courses/ruby-beginner-en-XYcN1/3/2?curriculum_id=5059f8619189a5000201fbcb

Oops, try again. It looks like you didn't print out the numbers 1 to 50, inclusive.
I had replaced this code with 51. Is this right to do ? But my error had gone.

 i = 1
until i == 51 do
    print i
    i = i + 1
end

#2

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