Created
August 20, 2013 18:12
-
-
Save jsedwards/6285085 to your computer and use it in GitHub Desktop.
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
| 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