CLS
n = 9: m = 9
DIM a(n, m)
FOR i = 1 TO n
FOR j = 1 TO m
INPUT "vvedite element matrici="; a(i, j)
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(n)
FOR i = 1 TO n
b(i) = a(i, 1)
FOR j = 2 TO m
IF a(i, j) > b(i) THEN b(i) = a(i, j)
NEXT j
NEXT i
PRINT "Massiv maksimalnih elementov kazhdoy stroki"
FOR i = 1 TO n
PRINT b(i);
NEXT i
END
Тестирование выполнено в программе QB64 ( Скачать )