Heres a problem I came up with to try and explain my real problem:
Say I had a 5x5 grid of integers in an array (field[5][5]). The values are consecutive:
Code:
1   2   3   4   5 
6   7   8   9   10
11 12 13 14 15
16 17 18 19 20
21 22 23 24 25
Now, since im trying to figure out what array element is what part in the grid, how would I output the number 6, 7, and 13, for example.