CLS
DIM a(10)
FOR i = 1 TO 10
a(i) = 10 - i
NEXT
FOR i = 1 TO 8
a(i + 2) = a(i) + a(i + 2)
NEXT
FOR i = 1 TO 10
IF (a(i) AND 1) = 0 THEN k = k + 1
NEXT
FOR i = 1 TO 10
PRINT a(i);
NEXT
PRINT
PRINT "k ="; k
Тестирование выполнено в программе QB64 ( Скачать )