πŸ“Š Ruby
Q. What is the output of the given code?
x, y, z = 12, 36, 72
puts "The value of x is #{ x }."
puts "The sum of x and y is #{ x + y }."
puts "The average was #{ (x + y + z)/3 }."
  • (A) 12,48,40
  • (B) Syntax error
  • (C) The value of x is 12. The sum of x and y is 48. The average was 40.
  • (D) None of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (C) The value of x is 12. The sum of x and y is 48. The average was 40.

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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