Created
January 20, 2012 21:29
-
-
Save jesusangelm/1649706 to your computer and use it in GitHub Desktop.
Script en Ruby para felicitar a una persona por su cumpleaños - Version sencilla
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| # coding: utf-8 | |
| puts "Favor ingresa tu nombre" | |
| nombre = gets.chomp | |
| puts "#{nombre} cuantos años cumples???" | |
| anios = gets.chomp.to_i | |
| anios.times do |num| | |
| puts "#{num.to_s} Feliz Cumpleaños #{nombre}!!!" | |
| end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment