You don't need an array.
Simply start from the starting number:
1) Output the number
2) Increment the "column counter"
3) if the "column counter" is equal to the number of columns specified go down a line ('\n')
4) if number is not the ending number goto step 1