A
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 }."
- Correct Answer - Option(C)
- Views: 13
- Filed under category Ruby
- Hashtags:
Discusssion
Login to discuss.