# ranges_endless.rb print "Enter your age: " age = gets.to_i case age when 0..18 puts "You are a kid" when (19..) puts "You are grownup" end