Ruby - Loops and Iteration
What will be the output of the following Ruby code?
count = 0 loop do puts count count += 1 break if count == 3 end
count = 0 loop do puts count count += 1 break if count == 3 end
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions