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:
| 1 | 3 | 4 | 2 |
| 2 | 4 | 5 | 3 |
| 3 | 2 | 2 | 5 |
Sample Output:
| 1 | 3 | 4 | 2 | 10 |
| 2 | 4 | 5 | 3 | 14 |
| 3 | 2 | 2 | 5 | 12 |
| 6 | 9 | 11 | 10 |
From the Combined Bank Senior Officer May 2024 – Written (BIBM) exam, question 47 of 55.
More from this paper
- Previous: What do you understand by software quality assurance (SQA)? While purchasing a software system for your company, as a SQA team leader what…
- Next: Write a program in any language to find the prime numbers between 1.......n, where n is taken as user input. Sample input: Enter value of…
- All questions in Combined Bank Senior Officer May 2024 – Written (BIBM)