Ver originalint mayor = 0; for (int j = 0; j < N; j++){ for (int k = 0; k < M; k++){ if (matriz[j][k] > mayor) mayor = matriz[j][k]; }} return mayor;