Vidyalelo
Ruby Programming · Q110

Control Structures in Ruby

Programming · Ruby Programming · question 110

Q110

What is the output of the given code? m=5 loop do m-=1 break if m==0 end

A.
1 2 3 4 5
B.
10 20 30 40 50
C.
Error
D.
Nil
Answer

Answer: Option D

Solution

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