For the resulting matrix, just add the corresponding elements from each of the matrices you add. Use coordinates, like "i" and "j", to loop through all the elements in the matrices. For example (for Java; code is similar in C):
for (i = 0; i <= height - 1; i++)
for (j = 0; j<= weidht - 1; j++)
matrix_c[i][j] = matrix_a[i][j] + matrix_b[i][j]
Chat with our AI personalities
using OR ().
flow chart to swap two number
draw a flow chart to find hcf of two given numbers
One or more (and it has two or more outputs).
Two little problems: 1. stack doesn't have a flow-chart 2. there are no flow-charts in a C program