Skip to content

Instantly share code, notes, and snippets.

@kdefliese
Created September 25, 2015 01:07
Show Gist options
  • Save kdefliese/e5aaee61a956fbb91e22 to your computer and use it in GitHub Desktop.
Save kdefliese/e5aaee61a956fbb91e22 to your computer and use it in GitHub Desktop.
Homework for 9/24
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!"
@blip-lorist
Copy link

Good work! Clear variable names.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment