Last active
December 17, 2015 19:29
-
-
Save dydx/d37466a54abfd0f39f96 to your computer and use it in GitHub Desktop.
This file contains 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
# robot thing - Josh Sandlin | |
def prompt(*args) | |
print(*args) | |
gets.chomp | |
end | |
name = prompt("What's your name? ") | |
age = prompt("How old are you? ") | |
puts "Hi #{name}, who is #{age} years old!" | |
puts "Do you mind if you I call you #{name[0]}" | |
puts "You will be 75 years old in #{75 - age.to_i} years!" | |
name.upcase! | |
puts "Hey #{name}, where are you going?" | |
puts "Hey \"Dude\", what's up?" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment