M
Q. What is the output of the following code snippet?
x = 1
loop do
puts x
x += 1
break if x > 5
end
- Correct Answer - Option(A)
- Views: 49
- Filed under category Ruby
Discusssion
Login to discuss.