Computer Science, asked by prathapsprathap41, 2 months ago

Write the program to find out the sum of the matrix​

Answers

Answered by veeraswamy708
0

answer

;AlgorithmSTEP 1: START.STEP 2: DEFINE rows, cols, sumRow, sumCol.STEP 3: INITIALIZE matrix a[][] ={{1, 2, 3},{4, 5, 6}, {7, 8, 9}}STEP 4: rows = a.length.STEP 5: cols = a[0].length.STEP 6: REPEAT STEP 7 to STEP 10 UNTIL i<rows. // for(i=0; i<rows; i++)STEP 7: SET sumRow =0.STEP 8: REPEAT STEP 9 UNTIL j<cols.I hope it May helpful to you

Similar questions