πŸ“Š Ruby
Q. What is the output of the given code?
i = 3
while i > 0 do
print i
i -= 1
end
  • (A) 3
  • (B) 321
  • (C) Infinite loop
  • (D) 3 2 1 0
πŸ’¬ Discuss
βœ… Correct Answer: (B) 321

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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