diff --git a/strings.rb b/strings.rb new file mode 100644 index 0000000..24e312d --- /dev/null +++ b/strings.rb @@ -0,0 +1,7 @@ +# strings.rb +print "Ingresa tu nombre: " +nombre = gets.chomp # .chomp elimina el salto de línea al presionar Enter + +puts "¡Hola, #{nombre.capitalize}!" +puts "Tu nombre al revés es: #{nombre.reverse}" +puts "Tiene #{nombre.length} letras."