Created
September 25, 2015 01:07
-
-
Save kdefliese/e5aaee61a956fbb91e22 to your computer and use it in GitHub Desktop.
Homework for 9/24
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! What's your first name?" | |
first_name = gets.chomp | |
puts "What about your middle name? Don't be embarassed!" | |
middle_name = gets.chomp | |
puts "And finally, your last name!" | |
last_name = gets.chomp | |
puts "So your full name is #{first_name} #{middle_name} #{last_name}? That's a good name!" | |
puts "What's your favorite number, #{first_name}?" | |
better_fave = gets.chomp.to_i + 1 | |
puts "I don't know, I think #{better_fave} is a better number!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Good work! Clear variable names.