Vidyalelo
Ruby Programming · Q114

Control Structures in Ruby

Programming · Ruby Programming · question 114

Q114

What is the output of the given code? m= 0 loop do m += 1 print m break if m == 10 end

A.
12345678910
Answer
B.
1 2 3 4
C.
2 3 4 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