Get the results...
Set, let's say, Current to 1
Loop through the results...
Print the actual result
Can Current be divided by 2 ?
No -> we'll stay on the same row and Current will be Current + 1
Yes -> we'll create a new row and Current will be 1
End of loop