Skip to content

Instantly share code, notes, and snippets.

@jsedwards
Created August 20, 2013 18:12
Show Gist options
  • Save jsedwards/6285085 to your computer and use it in GitHub Desktop.
Save jsedwards/6285085 to your computer and use it in GitHub Desktop.
puts 'Hello there, and what\'s your first name?'
first_name = gets.chomp
puts 'What about your middle name?'
middle_name = gets.chomp
puts 'And your last name?'
last_name = gets.chomp
full_name = first_name+' '+middle_name+' '+last_name
puts 'Your name is ' + full_name+'? What a lovely name!'
puts 'Pleased to meet you, ' + full_name + '. :)'
puts "Did you know there are #{first_name.length + middle_name.length + last_name.length} letters in your name?"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment