Write a program in any language to find the sum of rows and columns of a m × n matrix, where m and n is taken input from the user. Give the output…

Write a program in any language to find the sum of rows and columns of a m × n matrix, where m and n is taken input from the user. Give the output in the following format:

Sample Input matrix:

1342
2453
3225

Sample Output:

134210
245314
322512
691110

From the Combined Bank Senior Officer May 2024 – Written (BIBM) exam, question 47 of 55.

More from this paper