Vidyalelo
Ruby Programming · Q22

Operators in Ruby

Programming · Ruby Programming · question 22

Q22

What is the output of the given code? counter = -50 while counter <0 puts counter counter+=10 end

A.
100 75 50 25
B.
-50 -40 -30 -20 -10
Answer
C.
100..5
D.
None of the mentioned

Answer: Option B

Solution

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