Question: matrix multiplication

Hi everyone, I have question that i cannot solve.

The question is : 

Write a procedure named MULTIPLYMATRIX to find the product of an n x m matrix by an
m x q matrix. Your procedure should print the result matrix. The dimensions n, m, q should be
input parameters in your procedure. Test your procedure by demonstrating multiplication of a 2 x
3 with a 3 x 4 matrix of your choice.

 

How to create an n*m matrix? I mean I don't quite understand the question. Can we have an arbitrary number of rows and columns or we need to create a loop to fit into any possibilities?

And how to construct a multiplication for two matrix?

 

Thx

Please Wait...