Ruby - Loops and Iteration
What will be the output of this Ruby code?
num = 2 until num > 5 do puts num num += 2 end
num = 2 until num > 5 do puts num num += 2 end
num > 5 becomes true.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions