Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("What's your first name?")
- first_name = gets.chomp
- first_name.capitalize!
- print("What's your last name?")
- last_name = gets.chomp
- last_name.capitalize!
- print("What's your city name?")
- city = gets.chomp
- city.capitalize!
- print("What's your state or province name?")
- state = gets.chomp
- state.upcase!
- sentence = "My name is #{first_name} #{last_name}, and I live in #{city}, #{state}!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement