Respuestas

2013-03-26T00:17:20+01:00

public static void main(String[] args) {

        Scanner Leer = new Scanner(System.in);

        int a,b,c,d;
        int resultado;
switch{

do{

 

system.out.println("*****Menu****):
system.out.println(" 1- Inserte num1: ");
System.out.println("Inserte num2: ");
System.out.println("Inserte num3: ");
System.out.println("Inserte num4: ");

case 1:
int menor = a;
if (b < menor)

break;

 

case2:
menor = b;
if (c < menor)

break;

 

case3:
menor = c;
if (d < menor)

break;

 

case4:
menor = d;

break;

    System.out.println ("\nEl menor de:" + a + "," + b + "," + c + "," + d + ",");

System.out.println("Es: " + menor);

int mayor = a;
if (b > mayor)
    mayor = b;
if (c > mayor)
    mayor = c;
if (d > mayor)
    mayor = d;
        
System.out.println("El mayor de:" + a + "," + b + "," + c + "," + d + ",");

System.out.println("Es: " + mayor);