Beginner here with coding problem

Thank you guys for your responses. I did some research on nested for loops. I'm still having trouble understanding how to get the data into a 4x4 matrix. I used the following code:

void output_array() // generates a matrix of temperature data
{
  float tempArray[4][4] = { {tdata[0],tdata[1],tdata[2],tdata[3]},
  {tdata[4],tdata[5],tdata[6],tdata[7]},
  {tdata[8],tdata[9],tdata[10],tdata[11]},
  {tdata[12],tdata[13],tdata[14],tdata[15]} };
  
  for (int i=0; i<4; i++)
  {
    for (int j=0;j<4; j++)
    {
      Serial.print(tempArray[i][j]);
    }
  }
}

The serial monitor returned the temperature data in a 1x16 array. How could I arrange the rows and columns in the for loop to give me the desired 4x4 matrix form?