1 2 3 4 5
10 9 8 7 6
11 12 13 14 15
20 19 18 17 16
21 22 23 24 25
FOR j=1 TO 5
FOR i=1 TO 5 STEP 2
A(i,j) = (i-1)*5 + j
NEXT i
FOR i=2 TO 4 STEP 2
A(i,j) = i*5 - j
NEXT i
NEXT j
1 2 3 4 5
10 9 8 7 6
11 12 13 14 15
20 19 18 17 16
21 22 23 24 25
FOR j=1 TO 5
FOR i=1 TO 5 STEP 2
A(i,j) = (i-1)*5 + j
NEXT i
FOR i=2 TO 4 STEP 2
A(i,j) = i*5 - j
NEXT i
NEXT j