INPUT "vvedite N ", n
DIM f(n, n)
RANDOMIZE TIMER
FOR i = 1 TO n
FOR j = 1 TO n
f(i, j) = INT(RND * 100) - 50
NEXT
NEXT
PRINT "massiv"
FOR i = 1 TO n
FOR j = 1 TO n
PRINT f(i, j);
NEXT
PRINT
NEXT
FOR i = 1 TO n
IF v(i, i) < 0 THEN s=s+ v(i, i)
NEXT
PRINT "summa otricat="; s