# Programa con if
puts "Escribe tu edad"
STDOUT.flush
e = gets.chomp.to_i
if e <= 0
puts "Vuelve a escribir tu edad"
STDOUT.flush
e = gets.chomp
end
if e > 1 || e < 15
puts "Eres un jovencillo"
end
if e > 16 || e < 35
puts "Eres un jóven"
end
if e > 36 || e < 65
puts "Eres un adulto"
end
puts "Adios"