Question 3(c): Write a code that fills out an Nx M two-dimensional array with user inputs and then calculates the sum of
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Question 3(c): Write a code that fills out an Nx M two-dimensional array with user inputs and then calculates the sum of
Question 3(c): Write a code that fills out an Nx M two-dimensional array with user inputs and then calculates the sum of the maximum elements at each column. Example: For the 2D array shown bellow, the max element at each column has been shown in gray box. Your program should calculate the sum of these max elements at each column i.e., sum = 9 + 5 + 9 + 8 + 8 = 39. 5 5 8 8 7 1 0 4 6 N 7 4 4 5 6 9 3 9 4 1 7 1 3 1 00 8