-
-
Save parzibyte/e4ad7b053b5db78b1812c7bb47dc9630 to your computer and use it in GitHub Desktop.
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
public static string InvertirManualmente(string cadena){ | |
string cadenaInvertida = ""; | |
// Recorrer cadena letra por letra | |
foreach(char letra in cadena){ | |
// Anteponer la letra a la cadena invertida | |
cadenaInvertida = letra + cadenaInvertida; | |
} | |
return cadenaInvertida; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment