Write A C Program To Find The Sum Of The Elements In The Matrix.Write a C program to find the sum of the elements in the matrix.
Input Format:The input consists of (m*n+2) integers.The first integer corresponds to m, the number of rows in the matrix and the second integer corresponds to n, the number of columns in the matrix.The remaining integers correspond to the elements in the matrix. The elements are read in row-wise order, the first row first, then second row and so on. Assume that the maximum value of m and n is 10.
Output Format:Refer sample output for details.[All text in bold corresponds to the input and the rest corresponds to output]Sample Input and Output1:Enter the number of rows in the matrix3Enter the number of columns in the matrix2Enter the elements in the matrix4 56 90 3The sum of the elements in the matrix is 27