CLS
INPUT "vvedite n"; n
DIM a(n)
p = 1
FOR i = 1 TO n
INPUT "vvedite element"; a(i)
NEXT
FOR i = 1 TO n
IF (i AND 1) = 0 THEN s = s + a(i) ELSE p = p * a(i)
NEXT
FOR i = 1 TO n
PRINT a(i);
NEXT
PRINT
PRINT "s ="; s, "p ="; p
Тестирование выполнено в программе QB64 ( Скачать )