In the code below i have 2 arrays, 1 containing 3 names, the other, a 2 dimensional array containing 21 numbers

I want to know how to print two arrays next to each other rather than one on top and one underneath. With the code shown below my output looks like:

```
name1
name2
name3

37 37 63 38 27 56 55
37 54 78 31 26 67 44
86 11 23 6  90 87 33

```

and i want it to display as such

```
name1   37 37 63 38 27 56 55
name2   37 54 78 31 26 67 44
name3   86 11 23 6  90 87 33

```

here is the function i am using to display the arrays

```
void printArrays(const int array1[][NUM_DAYS], const string array2[])
{
cout << "Name  \t\t\t Day 1\t Day 2\t Day 3\t Day 4 \t Day 5\t Day 6\t Day 7" << endl;
for (int i = 0; i < NUM_MONKEYS; i++)
{
    cout << array2[i] << endl;
}
cout << endl;

for (int row = 0; row < NUM_MONKEYS; row++)
{

    for (int col = 0; col < NUM_DAYS; col++)
    {
        cout << array1[row][col] << " ";

    }
    cout << endl;
}

```