while (i<10) { System.out.println('hola'); }
a=1; do ❌ System.out.pritln(a + "*" +i+ "=" + a*i); ❌ } while (i<=10);
Scanner x=new Scanner (System.in int ini float( in, int, ini, float ));
int i,vcs; ❌ nm; Scanner x=new Scanner (System.in); System.out.println ("dame un nombre"); nm=x.nextLine(); System.out.println("cuantas veces quieres que se repita"); vcs=x.nextInt(); i=1; ❌ { System.out.println(nm); i=i+1; } ❌ (i<=vcs);
int i,n; Scanner x=new Scanner (System.in); i=1; System.out.println("Dame el valor de N"); n=x.next(); { System.out.println(i); i=i+1; } (i<=n);
int i; i=1; do { if (i ❌ 2==0) { System.out.println(❌); } ❌; } while (i<=10); }
int us,cla,i,a; Scanner w=new (System.in); System.out.println("cual es su usuario"); us=w.next(); System.out.println("cual es su clave"); cla=.nextInt(); if (us == 1 cla == 123) { System.out.println("Acceso autorizado"); } { System.out.println("acceso denegado"); }
❌ (op) { case 1: System.❌.println("UNO"); break; case ❌: System.out.println("UNO")❌ break; default: System.out.println("no existe opción"); ❌; ❌
int A; A= 1; ❌ (A<=10) { System.out.❌("Jose")❌ ❌; }
La estrucrura que se muestra a continuación corresponde a que ciclo? i=1; ______ (n<=m) { System.out.println(n); n=n+1; }
For
while
do
El ciclo IF evalúa una condición y luego repite esa instrucción 10 veces
La inicialización de la variable contadora y el icremento. Son dos instrucciones que se tienen que agregar a los ciclos
For - While
Do - While
La instrucción switch permite evaluar una condición y mostrar el resultado solo puede ser falso o verdadero.
if (n % ! & &&( %, !, &, && ) 2 == = $( ==, =, $ ) 0) { System.out in ini( out, in, ini ).println("es par es impar( es par, es impar )"); } else { System.out.println("es impar es par( es impar, es par )"); }
int i;
String ;
Scanner = new Scanner(System.in);
System.out.println("dame un nombre");
a= x.next();
i=1;
{
System.out.println();
;
}
(i<=10);
Que realiza el codigo que se muestra a continuación int i;
String a;
Scanner x = new Scanner(System.in);
a= x.nextLine();
System.out.println(a);
i++;
while(i<=10);
Pide el nombre y lo imprime las veces que el usuario quiere
Imprime los nombres de los 10 numeros
Pide el nombre y lo imprime las 10 veces
Imprime los numero de 1 al 10
¿Es correcto el siguiente código? i=1; do { System.out.println("sara"); } while (i<=10);
Java es un lenguaje que solamente lo puedo escribir el IDEONE.com
❌ us,cla,i,a; Scanner w=new Scanner(System.in); System.out.println("cual es su usuario"); us=w.nextInt(); System.out.println("cual es su clave"); cla=w.nextInt(); if (❌ == 1❌ cla == 123) { System.out.println("Acceso autorizado"); System.out.println("dame un valor"); a=w.nextInt(); ❌; do { System.out.pritln(❌); i=i+1; } while (❌); } else { System.out.println("acceso denegado"); }
int ❌; ❌ (i<=10) { if (❌) { System.out.println(❌); } ❌; }