Computer Science, asked by bikashjha2615, 9 months ago

Write a phython program to calculate the sum of the elements of each row & column

Answers

Answered by sandhyanaidu44418
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