Задача 02.Sum Matrix Columns от Lab: Multidimensional Arrays
Write program that read a matrix from console and print the sum for each column. On first line you will get matrix rows. On the next rows lines, you will get elements for each column separated with a space.
Examples
Input |
Output |
3, 6 7 1 3 3 2 1 1 3 9 8 5 6 4 6 7 9 1 0 |
12 10 19 20 8 7 |
3, 3 1 2 3 4 5 6 7 8 9 |
12 15 18
|
решения: https://pastebin.com/Qzz1XMiW