/ Published in: Ruby

A program fronm controlate your programs with dea age
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
def mayorDeEdad(anios) if anios >= 18 puts "Gandeee!!" else puts "Enanin!!" end end puts "Cuantos años tienes?" anios = gets.chomp.to_i mayorDeEdad(anios)
Comments
