Control flow / Conditional statements / switch/case statements

str = ""
monitorInchSize = rand(15..27)
case monitorInchSize
when 15
    str = "too small"
when 16..18
    str = "good for the past decade"
when 19..23
    str = "for office work"
when 24..27
    str = "great choice"
else
    str = ""
end

puts "#{monitorInchSize}#{str}"