πŸ“Š Ruby
Q. What is the output of the given code?
m= 8
loop do
m += 2
puts m
break if m == 16
end
  • (A) 10 12 14 16
  • (B) rubyrubyrubyrubyruby
  • (C) Error
  • (D) None of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (A) 10 12 14 16

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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