CLS
INPUT "kol-vo elementov"; n
DIM a(n)
FOR i = 1 TO n
INPUT a(i)
NEXT
CLS
FOR i = 1 TO n
PRINT a(i);
NEXT
PRINT
FOR i = 1 TO n
IF a(i) MOD i = 0 THEN PRINT a(i);
NEXT
CLS
INPUT "kol-vo elementov"; n
DIM a(n)
FOR i = 1 TO n
INPUT a(i)
NEXT
CLS
FOR i = 1 TO n
PRINT a(i);
NEXT
PRINT
FOR i = 1 TO n
IF a(i) MOD i = 0 THEN PRINT a(i);
NEXT