find the minimum and maximum element in each column of a matrix

find the minimum and maximum element in each column of a matrix

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.

find the minimum and maximum element in each column of a matrix


Maximum element in each column of the matrix

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

Algorithm to find the maximum element in each column of a matrix

  • Input the order of the matrix.
  • Input the matrix elements.
  • For row = 0 to n-1
  • Find the maximum element in the column and print it.


find the minimum and maximum element in each column of a matrixClick here to learn more about FACE Prep PRO


Program to find the maximum element in each column of a matrix

@@coding::1@@


The minimum element in each column of a matrix

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

Algorithm to find the minimum element in each column of a matrix

  • Input the order of the matrix.
  • Input the matrix elements.
  • For row = 0 to n-1
  • Find the minimum element in the column and print it.


find the minimum and maximum element in each column of a matrixClick here to learn more about FACE Prep PRO


Program to find the minimum element in each column of a matrix

@@coding::2@@


Recommended Programs


Find the minimum and maximum element in each column of a matrix.

c