Vidyalelo
Ruby Programming · Q41

Operators in Ruby

Programming · Ruby Programming · question 41

Q41

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
Answer
D.
None of the mentioned

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board