plz send me coding which add two matrix by using two dimension array:icon_sad:

Salem commented: plz to read intro threads like http://www.daniweb.com/forums/announcement8-2.html and make an effort!!!! -3

a nested loop and using a protocol similar to do this should do the trick:

Each cell of matrix X can be accessed by using the syntax similar to this.

X[row][col];

Then matrix addition means the each cell in the result is the sum of the cells in the operands with the same indexes as the result cell.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.