Skip to content

Instantly share code, notes, and snippets.

@nicollehahn
Created June 21, 2015 14:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicollehahn/ad2b1a4bad5ea6335efc to your computer and use it in GitHub Desktop.
Save nicollehahn/ad2b1a4bad5ea6335efc to your computer and use it in GitHub Desktop.
Ruby: first, middle, last name Greeting full name
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