Vidyalelo
Ruby Programming · Q106

Control Structures in Ruby

Programming · Ruby Programming · question 106

Q106

What is the output of the given code? m= 8 loop do m += 2 puts m break if m == 16 end

A.
10 12 14 16
Answer
B.
Nil
C.
Error
D.
None of the mentioned

Answer: Option A

Solution

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