-
Help with 2D Arrays.
Im going to have two seprate 2D arrays. I know how to add the rows of a 2d array and i know how to add the columns of a 2d array, but i dont know how to do this.
There are TWO 2D Arrays. I need to add the index of the first 2d array with the same index of the other 2d array, etc. for example:
1 2 3
1 2 3
1 2 3
+
1 1 1
1 1 1
1 1 1
=
2 3 4
2 3 4
2 3 4
but i have no clue!
-
Use nested loops, with a loop over the rows and an inner loop over columns. Access the array entries using the indexes.