Entradas

Mostrando las entradas con la etiqueta suma diagonal

Manejo de matrices

     style="display:inline-block;width:728px;height:90px"      data-ad-client="ca-pub-5126364088863607"      data-ad-slot="9520827110"> CREAR UNA MATRIZ DE 5X5 Y LLENARLO CON NUMEROS ALEATORIOS, LUEGO HACER LA SUMA DE LOS NUMEROS QUE SE ENCUANTRES EN SU DIAGONAL, SUMAR LOS NUMEROS QUE SE ENCUENTREN BAJO LA DIAGONAL, SUMAR LOS NUMEROS SOBRE LA DIAGONAL, MOSTAR EL MENOR NUMERO DE LA MATRIZ Y EL MAYOR NUMERO. public class Ejemplo13 {     public static void main (String[] args)     {         System.out.print("Matriz de 5 filas por 5 columnas de contenido aleatorio:\n");               int N=5,i,j;         int diag=0;         int diagb=0;         int diags=0;         int matriz[][]=new int[N][N];         String menor=new String();      ...