Professional Documents
Culture Documents
Ejercicio
Ejercicio
FUNCIONES BASICAS
Porcentaje terminado:100%
Codigos de Programa:
public static void main(String[] args) {
System.out.println(menorAux( 10, 25, 35, 40));
}
public static int menorAux(int a, int b, int c){
int men = a;
if (b < men) men = b;
if (c < men) men = c;
return men;
}
public static int mayorAux (int a, int b, int c, int d, int e){
int my = a;
if (b > my) my = b;
if (c > my) my = c;
if (d > my) my = d;
if (e > my) my = e;
return my; }
else return d;
}
public static int menorAnd (int a, int b, int c, int d, int e){
else return e;
else return d;
}
public static int mayorAnd (int a, int b, int c, int d, int e){
else return e;