Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created January 8, 2020 16:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/92d831ac6e5e2625a4fe8bc50b109c25 to your computer and use it in GitHub Desktop.
Save parzibyte/92d831ac6e5e2625a4fe8bc50b109c25 to your computer and use it in GitHub Desktop.
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