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