The program to find the minimum and maximum element in each column of a matrix is discussed here. Given a matrix, the maximum and minimum elements of each column of the matrix are displayed as output.

Input:
3 3 (Order of the matrix – number of rows and columns)
1 4 9
3 5 1
2 8 5
Output:
3
8
9
Click here to learn more about FACE Prep PRO@@coding::1@@
Input:
3 3 (Order of the matrix – number of rows and columns)
1 4 9
3 5 1
2 8 5
Output:
1
4
1
Click here to learn more about FACE Prep PRO@@coding::2@@
Recommended Programs