Vidyalelo
Ruby Programming · Q108

Control Structures in Ruby

Programming · Ruby Programming · question 108

Q108

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

A.
0 10 20 30 40
Answer
B.
10 20 30 40 50
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