Halp me pls Im stcuk on 4


#1

whats wrong with my code

puts "whats ur last name"
first_name = gets.chomp
first_name.capitalize!

puts "what is your name?"
last_name = gets.chomp
last_name.capitalize!

puts "what is your town?"
city = gets.chomp
city.capitalize!

puts "what state do you live in?"
state = gets.chomp
state.upcase!

puts "Your name is #{last_name} #{first_name} and you're from #{city}, #{state}!"


#2

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.