INPUT "vvedite kol-vo elementov ",n
DIM a(n)
FOR i=1 TO n
INPUT"vvedite element ",a(i)
NEXT
PRINT"massiv"
FOR i=1 TO n
PRINT a(i);
NEXT
PRINT
FOR i=1 TO n
IF a(i)<0 THEN s=s+a(i)
NEXT
PRINT"summa=";s
INPUT "vvedite kol-vo elementov ",n
DIM a(n)
FOR i=1 TO n
INPUT"vvedite element ",a(i)
NEXT
PRINT"massiv"
FOR i=1 TO n
PRINT a(i);
NEXT
PRINT
FOR i=1 TO n
IF a(i)<0 THEN s=s+a(i)
NEXT
PRINT"summa=";s