Examveda

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

C. Error

D. None of the mentioned

Answer: Option B


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

Join The Discussion

Related Questions on Control Structures in Ruby