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
PRINT "noviy massiv:"
FOR i = 1 TO n
IF a(i) < 0 THEN a(i) = a(i) ^ 2
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
PRINT "noviy massiv:"
FOR i = 1 TO n
IF a(i) < 0 THEN a(i) = a(i) ^ 2
PRINT a(i);
NEXT