?
What is the output of the following code snippet?
What is the output of the following code snippet?
x = 1
loop do
puts x
x += 1
break if x > 5
end
x = 1
loop do
puts x
x += 1
break if x > 5
end
Join the Discussion
Login to post a comment or share your explanation.
Login