Code:
int array[][MAX_COLS] = {{2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22 },
{4, 8, 12, 16, 20, 24, 28, 32, 36, 40, 44 },
{5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55 },
{6, 12, 18, 24, 30, 36, 42, 48, 54, 60, 66 },
{7, 14, 21, 28, 35, 42, 49, 56, 63, 70, 77 },
{8, 16, 24, 32, 40, 48, 56, 64, 72, 80, 88 }};
int insertarray[] = {3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33 };
// I need to put this into the 2 row.
for (int nRows = 0; nRows < 6; nRows++ )
{
for( int nCols = 0; nCols < MAX_COLS; nCols++ )
{
cout << array[nRows][nCols] << " ";
}
cout << endl;
}