Examveda

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: Option D


This Question Belongs to Ruby Programming >> Control Structures In Ruby

Join The Discussion

Related Questions on Control Structures in Ruby