Created
January 8, 2020 16:23
-
-
Save parzibyte/92d831ac6e5e2625a4fe8bc50b109c25 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
int vocales = 0; | |
for (int x = 0; x < cadena.length(); x++) { | |
char letraActual = cadena.charAt(x); | |
if (esVocal(letraActual)) vocales++; | |
} | |
System.out.printf("Vocales en '%s': %d", cadena, vocales); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment