DIM a(10)
RANDOMIZE TIMER
PRINT "ishodnyj massiv"
FOR i = 1 TO 10
a(i) = INT(RND * 10) + 1
PRINT a(i);
NEXT
PRINT
FOR i = 1 TO 10
IF a(i) MOD 2 <> 0 AND i MOD 2 = 0 THEN a(i) = 0
NEXT
PRINT "novyj massiv"
FOR i = 1 TO 10
PRINT a(i);
NEXT
Тестирование выполнено в программе QB64 ( Скачать )