πŸ“Š Ruby
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
πŸ’¬ Discuss
βœ… Correct Answer: (A) 0 10 20 30 40

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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