A
Q. What is the output of the given code?
age = 4
case age
puts "baby" when 0 .. 2
puts "little child" when 3 .. 6
puts "child" when 7 .. 12
puts "youth" when 13 .. 18
puts "adult" else
end
- Correct Answer - Option(D)
- Views: 3
- Filed under category Ruby
- Hashtags:
Discusssion
Login to discuss.