Write a Ruby program which accept the user's first and last name and print them in reverse order with a space between them.
Ruby Code:
puts "Input your first name: " fname = gets.chomp puts "Input your last name: " lname = gets.chomp puts "Hello #{lname} #{fname}"
Input your first name: Input your last name: Hello Lanoie Gary
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Ruby Code: