Ruby - Loops and Iteration
Identify the error in this Ruby code:
counter = 0 until counter > 4 do puts counter counter = counter - 1 end
counter = 0 until counter > 4 do puts counter counter = counter - 1 end
counter > 4 becomes true.counter = counter - 1), so it moves away from the exit condition.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions