Created
January 21, 2024 04:43
-
-
Save aortiz49/0084e9f546227b64acd5f6117a90ace7 to your computer and use it in GitHub Desktop.
Homework #01
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
puts "Please enter your first name: " | |
first_name = gets.chomp | |
puts "Please enter your last name: " | |
last_name = gets.chomp | |
full_name = "#{first_name} #{last_name}" | |
puts "Your full name is #{full_name}" | |
puts "Your full name reversed is #{full_name.reverse}" | |
puts "Your name has #{first_name.length + last_name.length} characters in it" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment