Documentos de Académico
Documentos de Profesional
Documentos de Cultura
import javax.swing.*;
String numero,valor1;
int cantidad,valor2,mayor=1,menor,i=0;
cantidad=Integer.parseInt(numero);
valor2=Integer.parseInt(valor1);
menor=valor2;
while(i<=cantidad)
i++;
if(valor2<=menor)
menor=valor2;
if(valor2>mayor)
mayor=valor2;
if(i<cantidad){
valor2=Integer.parseInt(valor1);}
}