πŸ“Š Ruby
Q. 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
πŸ’¬ Discuss
βœ… Correct Answer: (A) 101 101 101 101 101

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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