Vidyalelo
Ruby Programming · Q39

Operators in Ruby

Programming · Ruby Programming · question 39

Q39

What is the output of the given code? a = 22.5 while a >11.5 puts a a-=3.5 end

A.
22.5 19.0 15.5 12.0
B.
22.5 11.5
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