I would suggest you make a 2-D array.
By looking at your desired output, that array would be declared as such:
........where 14 is the amount of numbers in a row, and 7 is the amount of numbers in a columns.
So the first 15 occurs at arr[1][4]......where 1 is the row, and 4 is the column. And you start counting at zero.
But if you just want to continue what you have:
Every for-loop, you cannot start from zero. If your first for-loop started at zero and ended at 13, then your second forloop should start at 14 and end at 28, your third forloop should start at 29 and end at 44, and so on...until you make a forloop that stops at 98.
Also, you should change your array values. For example, the first 15 occurs at array[18], the second 15 occurs at array[23], etc.
For those positions you want to do something like this:
array[18] = 15;
.