Created
January 15, 2019 17:48
-
-
Save parzibyte/42668d3dd6f1c2cb01a515539ba2fdf3 to your computer and use it in GitHub Desktop.
Convertir cadena a mayúscula y minúscula created by parzibyte - https://repl.it/@parzibyte/Convertir-cadena-a-mayuscula-y-minuscula
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
cadena = "Hola, mundo" | |
minuscula = cadena.downcase | |
mayuscula = cadena.upcase | |
mayuscula.downcase! | |
puts "'#{cadena}' en minúscula es '#{minuscula}' y en mayúscula es '#{mayuscula}'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment