ran into a problem

i know this is asking for me to calculate the product of a coulmn and row but im not sure where to begin.

I know that rowData tells us the value in a row and nRows specifies the number of rowData and the same with nCols and colData, however i do not understand how to multiply these to get their product... do I use a loop or where should i begin?

int multiply( double rowData[ ], int nRows, double colData[ ], int nCols,

double product[ ][ MAXCOLS ] );

Calculates the matrix multiplication of an nRows x 1 column vector(rowData )times a 1 x nCols row vector ( columnData ) to yield an nRows x nCols matrix,

where product[ r ][ c ] = rowData[ r ] * colData[ c ], as shown in the diagram below.

( Note that the rowData vector contains data for each row but is actually a column

vector, and vice versa. )