#sample solution
print "What's your first name?"
first_name = gets.chomp
print "What's your last name?"
last_name = gets.chomp
print "What's the name of your city?"
city = gets.chomp
print "What's the abbreviation for your state/province?"
state = gets.chomp.upcase
print "The variables are #{first_name}, #{last_name}, #{city}"
print "What's your first name?"
first_name = gets.chomp
print "What's your last name?"
last_name = gets.chomp
print "What's the name of your city?"
city = gets.chomp
print "What's the abbreviation for your state/province?"
state = gets.chomp.upcase
print "The variables are #{first_name}, #{last_name}, #{city}"
No comments:
Post a Comment