corregir tokenizacion ejercicio 13 de bucles
This commit is contained in:
1 parent
8c5d233def
commit
64f39d73e1
1 file changed
+2
-2
+2
-2
@@ -11,9 +11,9 @@ void main() {
|
|||||||
System.out.println("Cuantos carácteres a leer?");
|
System.out.println("Cuantos carácteres a leer?");
|
||||||
int n = sc.nextInt();
|
int n = sc.nextInt();
|
||||||
sc.nextLine();
|
sc.nextLine();
|
||||||
System.out.println("Introduce los carácteres (uno por línea): ");
|
System.out.println("Introduce los carácteres: ");
|
||||||
do {
|
do {
|
||||||
char c = sc.nextLine().charAt(0);
|
char c = sc.next().charAt(0);
|
||||||
switch (c) {
|
switch (c) {
|
||||||
case 'a', 'e', 'i', 'o', 'u':
|
case 'a', 'e', 'i', 'o', 'u':
|
||||||
result++;
|
result++;
|
||||||
|
|||||||
Reference in new issue
Block a user