What will be the output of the given code snippet?
What will be the output of the given code snippet?
题目类型: 技术面试题
这是一道技术面试题,常见于澳洲IT公司面试中。
难度: medium
标签: interviewbit, ruby-on-rails, topic-specific, ruby, rails, backend
参考答案摘要
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 }." Output: The value of x is 12. The sum of x and y is 48. The av...
本题提供 STAR 原则详细解答和技术解析,登录匠人学院学习中心即可查看完整答案。