I ended up finding that if I add another for statement and nested in the first for loop and then cout some blank spaces I was able to achieve what I was looking to do. Below is what I had to do.

for(i = 0; i < num_rows; i++) { for(j = 0; j < num_cols_1; j++) { // print j'th element in i'th row of array 1 } // print some spaces for(j = 0; j < num_cols_2; j++) { // print j'th element in i'th row of array 2 } }