Q. What is the output of the given code?
counter = 1
while counter < 11
puts counter
counter = counter + 1
end
counter = 1
while counter < 11
puts counter
counter = counter + 1
end
β
Correct Answer: (A)
Prints the number from 1 to 10