Repeat for More Input


#1

Salut, pouvez-vous m’aider ? merci

https://www.codecademy.com/courses/learn-ruby/lessons/putting-the-form-in-formatter/exercises/repeat-for-more-input?action=lesson_resume

Did you declare a variable called last_name?

print "What's your first name? "
first_name = gets.chomp
last_name= gets.chomp


#2

Your code looks incomplete.

print "What's your first name? "
first_name = gets.chomp.capitalize!
print "What's your last name? "
last_name = gets.chomp.capitalize!
print "What city do you live in? "
city = gets.chomp.capitalize!
print "What state? (xx) "
state = gets.chomp.upcase!

puts "Your name is #{first_name} #{last_name} and you live in #{city}, #{state}."