/* Matrix Commutation test */ #include <stdio.h> #include <math.h> #include <stdlib.h> int main() { int i,j,n,m,p,k,a[20][20],b[20][20],e[20][20],g[20][20], flag=1; printf( "Enter the order of the matrix A:\n" ); scanf( "%d%d" , &m ,&n); printf( "Enter the order of the matrix B:\n" ); scanf( "%d%d" , &n, &p); printf( "Enter the elements of the matrix A:\n" ); for (i=0;i<m;i++) { for (j=0;j<n;j++) scanf( "%d" , &a[i][j]); printf( "\n" ); } printf( "Enter the elements of the matrix B:\n" ); for (i=0;i<n;i++) { for (j=0;j<p;j++) scanf( "%d" , &b[i][j]); printf( "\n" ); } /*matrix multiplication AB */ for (i=0;i<m;i++) { for (j=0;j<p;j++) { e[i][j]=0; for (k=0;k<n;k++) e[i][j]=e[i][j]+a[i][k]*b[k][j]; } } printf( "Product matrix AB...