Vidyalelo
Ruby Programming · Q40

Operators in Ruby

Programming · Ruby Programming · question 40

Q40

What is the output of the given code? counter = 100 while counter > 0 puts counter counter/=5 end

A.
100 20 4
Answer
B.
100 20 5
C.
100..5
D.
None of the mentioned

Answer: Option A

Solution

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