Q. What is the output of the given code?
counter = -50
while counter <0
puts counter
counter+=10
end
counter = -50
while counter <0
puts counter
counter+=10
end
β
Correct Answer: (B)
-50 -40 -30 -20 -10