Last active
August 7, 2019 23:04
-
-
Save parzibyte/e0dafb89fd301d21e7bc54694678e2c2 to your computer and use it in GitHub Desktop.
Saber si cadena termina con otra en c# - https://parzibyte.me/blog/2018/09/25/comprobar-si-cadena-termina-con-en-c/
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
class Ejemplo{ | |
public static void Main(){ | |
string saludo = "Hola, mundo"; | |
if(saludo.EndsWith("o")){ | |
System.Console.WriteLine("Termina con la letra o"); | |
}else{ | |
System.Console.WriteLine("No termina con o"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment