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
max = -1E38
FOR i = 1 TO n
IF a(i) > max AND a(i) < 0 THEN max = a(i)
NEXT
PRINT "max iz otricatelnih:"; max
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
max = -1E38
FOR i = 1 TO n
IF a(i) > max AND a(i) < 0 THEN max = a(i)
NEXT
PRINT "max iz otricatelnih:"; max