Problem Statement
Write a program to calculate the sum of elements for each column in an N x M matrix. Print M integers separated by space.
DEMO-C-32 โข Programming in C
Write a program to calculate the sum of elements for each column in an N x M matrix. Print M integers separated by space.
Input: Dimensions N M followed by the matrix elements.
Output: The formatted result as specified.
Submit runs every public testcase in this browser. Results and code never leave this device.
5 5 -4 1 -5 28 9 11 -7 1 1 -4 9 6 5 45 13 0 8 41 -2 50 19 24 36 21 11
35 32 78 93 79
2 4 9 41 14 0 8 -4 -8 18
17 37 6 18
2 4 -4 19 35 -4 -2 25 29 10
-6 44 64 6
3 3 -4 5 35 48 41 -3 3 3 2
47 49 34
C, C++, Java, and Python run locally in a browser VM. No worker or visualizer is used.
/workspace/question