Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created Apr 24, 2021
Embed
What would you like to do?
static void sumaFilas(int[][] matriz) {
for (int y = 0; y < matriz.length; y++) {
int suma = 0;
for (int x = 0; x < matriz[y].length; x++) {
System.out.printf("%d ", matriz[y][x]);
suma += matriz[y][x];
}
System.out.printf("= %d\n", suma);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment