Created
June 21, 2015 14:56
-
-
Save nicollehahn/ad2b1a4bad5ea6335efc to your computer and use it in GitHub Desktop.
Ruby: first, middle, last name Greeting full name
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
puts "Hello, there. I would like to find out who you are. What is your first name? " | |
first = gets.chomp | |
puts "May I ask also what is your middle name? " | |
middle = gets.chomp | |
puts "I am totally going out there, finish it up, please.... What is your last name?" | |
last = gets.chomp | |
puts 'Pleased to meet you, ' + first + ' ' + middle + ' ' + last + '.' | |
puts '' | |
print 'I am a cool chickster named Ruby. Are you ready to go on a wild ride with me? You\'re life will never be the same.' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment