Ok, I did it a function. that takes 3 parameter. The first is an array called list and listSize is a constant with the value of the 16 elements. Since it's an array, the value is 15.
matrix is the 4 by 4 array that we want to pass the values into.
row is the number of rows.
here is the function.
void matricize(int list[listSize], int matrix[rows][columns], int rows)
{
//INPUT THE VALUES OF ONE-DIMENSION ARRAY INTO THE TWO-DIMENSION ARRAY
int listSize=0;
for (int counter1 = 0; counter1 < rows; counter1++)
{
for (int count=0;count < columns; count++)
{
matrix[counter1][count] = list[listSize];
listSize++;
}
}
}
thanks for you help KUB