Commit 10854596 by Marcos Echague

Update Ejercicio05.java

parent 557bfb70
import java.util.Scanner;
/**
* Ejercicio05
*/
public class Ejercicio05 {
public static void main(String[] args) {
Scanner teclado = new Scanner(System.in);
System.out.println("Ingrese un numero");
int numero = teclado.nextInt();
teclado.close();
if(numero%2 == 0){
System.out.println("Es divisible entre 2");
}else{
System.out.println("No es divisible entre 2");
}
}
}
\ No newline at end of file
import java.util.Scanner;
/**
* Ejercicio05
*/
public class Ejercicio05 {
public static void main(String[] args) {
Scanner teclado = new Scanner(System.in);
System.out.println("Ingrese un numero");
int numero = teclado.nextInt();
teclado.close();
if(numero%2 == 0){
System.out.println("Es divisible entre 2");
}else{
System.out.println("No es divisible entre 2");
}
}
}
//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