Return to Snippet

Revision: 49230
at July 18, 2011 20:59 by albertosegoviamolinero


Initial Code
puts " Introduce tu edad"

def mayorDeEdad(anios)
       if anios >= 18
            puts "Eres una gaviota"
        else
            puts "Eres un pezqueñin "
        end
        
 end
mayorDeEdad(Edad=gets.chomp.to_i)

Initial URL

                                

Initial Description

                                

Initial Title
Edad mayor o menor

Initial Tags

                                

Initial Language
Ruby