The 'Until' Loop


#1

I don't understand how to do this lesson. Please help! :slightly_smiling:


#2

Hello @terasurfer49500,

Which concept/instruction do you have trouble with?


#3
counter = 1
until counter <= 10
  puts counter
  # Add code to update 'counter' here!
  counter = counter + 1
end

Its not passing me..


#4

counter = 1
until counter <= 10 (should be until counter > 10)
puts counter
# Add code to update 'counter' here!
counter = counter + 1
end


#5

counter = 1
i = 0
until i == 10
i += 1
puts counter
counter = counter + 1
end