/*Develop functions a)To read a given matrix b)To output a matrix c)To compute the product of two matrices use the above developed functions to read int two matrices A(m*n) and B(p*q), to compute the product of te input matrices, to output the given matrices and the computed product matrix in a main function. */ #include #include int main() { void input(int a[5][5],int m,int n); void output(int a[5][5],int m,int n); void pro(int a[5][5],int b[5][5],int c[5][5],int m,int n,int q); int m,n,p,q,a[5][5],b[5][5],c[5][5]; printf("\n Enter the m and n size of the matrix a:\n"); scanf("%d%d",&m,&n); printf("\n Enter the p and q size of the matrix b:\n"); scanf("%d%d",&p,&q); if(n!=p) printf("\n Multiplication is not possible\n"); else { printf("\n Enter the first matrix a"); input(a,m,n); printf("\n Enter the second matrix b\n"); input(b,p,q); pro(a,b,c,m,n,q); printf("\n The first matrix a:\n"); output(a,m,n); printf("\n The second matrix b\n"); output(b,p,q); printf("\n The computed of two matrices:\n"); output(c,m,q); } return 0; } void input(int a[5][5],int m,int n) { int i,j; for(i=0;i