import java.util.Scanner; public class DivisionesModulos { public static void main(String args[]) { Scanner teclado = new Scanner(System.in); int div1 = 11 / 4; System.out.println("11 / 4 = " + div1); double div2 = 11 / 4.0; System.out.println("11 / 4.0 = " + div2); int x = 4; double div3 = 11 / x; System.out.println("11 / x = " + div3); double y = 4; double div4 = 11 / y; System.out.println("11 / y = " + div4); System.out.println(); int res1 = 11 % 4; System.out.println("11 % 4 = " + res1); System.out.print("Anno: "); int anno = teclado.nextInt(); if ( anno % 4 == 0 ) System.out.println(anno + " es divisible por 4"); } }