-
-
Save parzibyte/d7cacd71908942b91d1f1b02faa0e955 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Primero hacer la suma | |
int[][] matrizSuma = new int[matriz1.length][matriz1[0].length]; | |
for (int y = 0; y < matriz1.length; y++) { | |
for (int x = 0; x < matriz1[y].length; x++) { | |
int numeroMatriz1 = matriz1[y][x]; | |
int numeroMatriz2 = matriz2[y][x]; | |
int suma = numeroMatriz1 + numeroMatriz2; | |
matrizSuma[y][x] = suma; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment