Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

10 lines (7 sloc) 0.336 kB
# Write a program which asks for a person's first name, then middle, then last.
# Finally, it should greet the person using their full name.
puts "What's your first name, then middle, then last?"
first_name = gets.chomp
middle_name = gets.chomp
last_name = gets.chomp
puts 'Hello ' + first_name + ' ' + middle_name + ' ' + last_name
Jump to Line
Something went wrong with that request. Please try again.