Commit 10854596 by Marcos Echague

Update Ejercicio05.java

parent 557bfb70
import java.util.Scanner; import java.util.Scanner;
/** /**
* Ejercicio05 * Ejercicio05
*/ */
public class Ejercicio05 { public class Ejercicio05 {
public static void main(String[] args) { public static void main(String[] args) {
Scanner teclado = new Scanner(System.in); Scanner teclado = new Scanner(System.in);
System.out.println("Ingrese un numero"); System.out.println("Ingrese un numero");
int numero = teclado.nextInt(); int numero = teclado.nextInt();
teclado.close(); teclado.close();
if(numero%2 == 0){ if(numero%2 == 0){
System.out.println("Es divisible entre 2"); System.out.println("Es divisible entre 2");
}else{ }else{
System.out.println("No es divisible entre 2"); System.out.println("No es divisible entre 2");
} }
} }
} }
\ No newline at end of file //mechague Excelente!
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment