The program to find the minimum and maximum element in each row of a matrix is discussed here. Given a matrix, the maximum and minimum elements of each row 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:
9
5
8
@@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
1
2
@@coding::2@@
Recommended Programs