DIM a(10)
FOR i = 1 TO 10
INPUT "vvedite element ", a(i)
NEXT
PRINT "massiv"
FOR i = 1 TO 10
PRINT a(i); " ";
NEXT
PRINT
FOR i = 1 TO 10
IF i > 4 THEN s = s + a(i)
NEXT
PRINT "summa="; s
Тестирование выполнено в программе QB64 ( Скачать )