corregir tokenizacion ejercicio 13 de bucles

This commit is contained in:
PC de clase committed 2026-10-05 13:06:04 +02:00
1 parent 8c5d233def
commit 64f39d73e1
1 file changed
+2 -2
+2 -2
View File
@@ -11,9 +11,9 @@ void main() {
System.out.println("Cuantos carácteres a leer?");
int n = sc.nextInt();
sc.nextLine();
System.out.println("Introduce los carácteres (uno por línea): ");
System.out.println("Introduce los carácteres: ");
do {
char c = sc.nextLine().charAt(0);
char c = sc.next().charAt(0);
switch (c) {
case 'a', 'e', 'i', 'o', 'u':
result++;