Write a phython program to calculate the sum of the elements of each row & column
Answers
Answered by
0
Answer:
Input: array[4][4] = { {1, 1, 1, 1},
{2, 2, 2, 2},
{3, 3, 3, 3},
{4, 4, 4, 4}};
Output: Sum of the 0 row is = 4
Sum of the 1 row is = 8
Sum of the 2 row is = 12
Sum of the 3 row is = 16
Sum of the 0 column is = 10
Sum of the 1 column is = 10
Sum of the 2 column is = 10
Sum of the 3 column is = 10
Explanation:
Similar questions
Hindi,
5 months ago
Biology,
5 months ago
Biology,
9 months ago
Computer Science,
9 months ago
Math,
1 year ago