What is the output of the given code?
counter = 1
while counter < 11
puts counter
counter+=1
end
counter = 1
while counter < 11
puts counter
counter+=1
endA. 1 2 3 4 5
B. 1...10
C. 1..10
D. None of the mentioned
Answer: Option C
Related Questions on Operators in Ruby

Join The Discussion