package examen;
public class Main {
public static void main(String[] args) {
int m,n,i,j,j1=0,max = 0,min = 0;
m=(int)(Math.random()*10);
n=24;
int emp[][] =new int [m+2][n+2];
for(i=0;i
for(j=0;j
emp[i][j]=(int)(Math.random()*2001+1000);
System.out.println(emp[i][j]+" "+i+" "+j);
j1=j;
while(emp[i][j1]>emp[i][j1+1] && j1!=25)
{
max=emp[i][j1];
j1=j1+1;
}
}
System.out.println("El maximo sera "+max);
System.out.println("El minimo sera "+min);
}
}
}
link = http://www.mediafire.com/?zmurf3jiliy
No hay comentarios:
Publicar un comentario