Q. What is the output of the following code snippet?
x = 5
while x > 0
puts x
x -= 1
end
x = 5
while x > 0
puts x
x -= 1
end
β
Correct Answer: (B)
12345
You must be Logged in to update hint/solution