Return to Snippet

Revision: 49227
at July 18, 2011 20:58 by solhelios


Initial Code
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)

Initial URL

                                

Initial Description
A program fronm controlate your programs with dea age

Initial Title
How to control de age in yout programs

Initial Tags
ruby

Initial Language
Ruby