Write a method named matrixadd that accepts a pair of two-dimensional arrays of integers as parameters, treats the arrays as 2d matrices and adds them, returning the result. the sum of two matrices a and b is a matrix c where for every row i and column j, cij = aij + bij. you may assume that the arrays passed as parameters have the same dimensions.

Solved
Show answers

Ask an AI advisor a question