The Until Loop


#1

Can someone please tell me where I'm going wrong. Thanks

counter = 1
until counter > 10
puts counters
counter = 1
until counter > 10
puts counter
counter = counter + 1
end


#2

The lesson starts us out with this in the editor:

counter = 1
until counter __ 10
  puts counter
  # Add code to update 'counter' here!
  
end

Recommend reset and only add the code asked for. Your second line is correct. The third, fourth and fifth need to be removed.


#3

I tried following along with the instructions. It's still not working.

counter = 1
until counter > 10
puts counter
counter == 1
until counter == 10
counter += 10
end


#4

I got it never mind. Here is the syntax:

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