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: No registered users and 0 guests