INPUT "vvedite kolichestvo strok ", m
DIM a(m, 6), b(m * 6)
RANDOMIZE TIMER
FOR i = 1 TO m
FOR j = 1 TO 6
a(i, j) = INT(RND * 20) - 10
NEXT
NEXT
PRINT "ishodnyj massiv"
FOR i = 1 TO m
FOR j = 1 TO 6
PRINT a(i, j);
NEXT
PRINT
NEXT
FOR j = 1 TO 6
FOR i = 1 TO m
IF (a(i, j) > 0) AND (a(i, j) MOD 2 = 0) AND (j MOD 2 <> 0) THEN k = k + 1: b(k) = a(i, j): f = 1
NEXT
NEXT
IF f = 1 THEN PRINT "novyj massiv": FOR i = 1 TO k: PRINT b(i); : NEXT ELSE PRINT "takih elementov net"