Ruby - Loops and Iteration
What is the output of this Ruby code?
i = 1 while i <= 3 do puts i i += 1 end
i = 1 while i <= 3 do puts i i += 1 end
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions