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

  • (A) rubyrubyrubyrubyrubyruby
  • (B) 10 20 30 40 50
  • (C) Error
  • (D) None of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (B) 10 20 30 40 50

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
145
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
94%
Success Rate