πŸ“Š Ruby
Q. What is the output of the following code snippet?
x = 5
while x > 0
puts x
x -= 1
end
  • (A) 54321
  • (B) 12345
  • (C) Error
  • (D) Infinite loop
πŸ’¬ Discuss
βœ… Correct Answer: (B) 12345

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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