posted 8 years ago
Hi, I'm trying to write a method that accepts accepts a pair of two dimensional arrays of integers as parameters (matrixA and matrixB)
and returns a new array as a sum (matrixC). The sum of matrixA and matrixB is matrixC, where for every row i and column j, C(ij) = A(ij) + B(ij).
I'm having trouble initializing matrixC. How do I set it up so I can edit each "element" of the matrix every time I add?
Thanks for any help!