M

Mr. Dubey • 97.86K Points
Coach

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

  • (A) 0 10 20 30 40
  • (B) 10 20 30 40 50
  • (C) Error
  • (D) None of the mentioned
  • Correct Answer - Option(A)
  • Views: 102
  • Filed under category Ruby

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics