for i = 0 to 8 do
array[i%3,floor(i/3)] = i+1
Something like that, off tip of my mind.
Actually, even simpler, in the for every element loop, just set the current value to x*y. If zero indexed... (x+1)*(y+1)
Users browsing this forum: MSNbot Media and 9 guests