Write a Ruby program which accept the user's first and last name and print them in reverse order with a space between them
- برمجة روبي
- برمجة
- 2021-08-28
- mhanasmh00489829403
الأجوبة
Ruby Code:
puts "Input your first name: "
fname = gets.chomp
puts "Input your last name: "
lname = gets.chomp
puts "Hello #{lname} #{fname}"
Output:
Input your first name: Input your last name: Hello Lanoie Gary
أسئلة مشابهة
القوائم الدراسية التي ينتمي لها السؤال