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
f(i, i) = 0
NEXT
PRINT "new massiv"
FOR i = 1 TO n
FOR j = 1 TO n
PRINT f(i, j);
NEXT
PRINT
NEXT