Ruby - Loops and Iteration
What will be the output of this Ruby code?
for i in 1..3 do
puts i * 2
endfor i in 1..3 do
puts i * 2
end15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions