main.m384 chars21 lines
This program defines the two matrices A and B, creates an empty matrix C to store the products, and then iterates through the rows and columns of A and B using for loops. It multiplies the elements of each row in A by the corresponding elements in each column of B to get the corresponding element in C using another for loop. Finally, it prints out the resulting matrix C.
gistlibby LogSnag