Examveda

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

A. 101 101 101 101 101

B. 10 20 30 40 50

C. Error

D. None of the mentioned

Answer: Option A


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

Join The Discussion

Related Questions on Control Structures in Ruby