Examveda

What is the output of the given code?
counter = 1
while counter < 11
  puts counter
  counter+=1
  end

A. 1 2 3 4 5

B. 1...10

C. 1..10

D. None of the mentioned

Answer: Option C


This Question Belongs to Ruby Programming >> Operators In Ruby

Join The Discussion

Related Questions on Operators in Ruby