C program to find maximum element in matrix

C program to find maximum element in matrix

Input:

Enter the number of rows of a matrix: 3
Enter the number of columns of a matrix: 3
Enter the numbers in the matrix:
1 2 3
4 5 6
7 8 9

Output:

The maximum element in the matrix is 9

Implementation: