Vidyalelo
Ruby Programming · Q107

Control Structures in Ruby

Programming · Ruby Programming · question 107

Q107

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

A.
rubyrubyrubyrubyrubyruby
B.
rubyrubyrubyrubyruby
Answer
C.
Error
D.
None of the mentioned

Answer: Option B

Solution

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