/ Published in: Ruby
este programa te dice si eres mayor de edad
Expand |
Embed | Plain Text
def mayorDeEdad() anios = Integer(gets.chomp) # teclado if anios 18 puts "Puedes beber alcohol" else puts "pringao" end end puts "dime tu edad" mayorDeEdad()
You need to login to post a comment.
