CLS
INPUT "vvedite n"; n
DIM a(n, n), b(n)
FOR i = 1 TO n: FOR j = 1 TO n
PRINT "vvedite a("; i; ","; j; ")"
INPUT a(i, j)
NEXT: NEXT
CLS
FOR i = 1 TO n: FOR j = 1 TO n
PRINT a(i, j);
NEXT: PRINT: NEXT
PRINT STRING$(80, 196)
FOR j = 1 TO n: s = 0: FOR i = 1 TO n
s = s + a(i, j)
NEXT: b(j) = s: NEXT
PRINT "a)"
FOR i = 1 TO n
PRINT b(i);
b(i) = 0
NEXT
PRINT
FOR i = 1 TO n: min = a(i, 1): FOR j = 1 TO n
IF a(i, j) < min THEN min = a(i, j)
NEXT: b(i) = min: NEXT
PRINT "b)"
FOR i = 1 TO n
PRINT b(i);
b(i) = 0
NEXT
PRINT
FOR i = 1 TO n
b(i) = a(i, i)
NEXT
PRINT "c)"
FOR i = 1 TO n
PRINT b(i);
b(i) = 0
NEXT
Тестирование выполнено в программе QB64 ( Скачать )