INPUT "kolvo strok="; n
INPUT "kolvo stolbcov="; m
DIM a(n, m)
FOR i = 1 TO n
FOR j = 1 TO m
a(i, j) = INT(RND * 100) - 50
NEXT j
NEXT i
FOR i = 1 TO n
FOR j = 1 TO m
PRINT a(i, j);
NEXT j
PRINT
NEXT i
PRINT
DIM b(m): s = 0
FOR j = 1 TO m
FOR i = 1 TO n
s = s + ABS(a(i, j))
NEXT i
b(j) = s: s = 0
NEXT j
max = b(1): jmax = 1
FOR j = 2 TO m
IF b(j) > max THEN max = b(j): jmax = j
NEXT j
min = a(1, jmax)
FOR i = 1 TO n
IF a(i, jmax) < min THEN min = a(i, jmax)
NEXT i
PRINT min
Тестирование выполнено в программе QB64 ( Скачать )