/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */packageejercicios;importjava.util.Scanner;/** * * @author roshka */publicclassEjercicio05{publicstaticvoidmain(String[]args){intvalor;Scannerscn=newScanner(System.in);System.out.println("Ingrese su valor");valor=scn.nextInt();if(valor%2==0){System.out.println("El numero es divisible por 2");}else{System.out.println("El numero no es divible por 2");}}}