INPUT "vvedite razmer massiva A ", m, n
DIM a(m, n), c(m)
FOR i = 1 TO m
FOR j = 1 TO n
INPUT " vvedite element ", a(i, j)
NEXT
NEXT
PRINT "ishodnyj massiv"
FOR i = 1 TO m
FOR j = 1 TO n
PRINT a(i, j);
NEXT
PRINT
NEXT
FOR i = 1 TO m
s = 0
FOR j = 1 TO n
s = s + a(i, j)
NEXT
c(i) = s
NEXT
PRINT "novyj massiv"
FOR i = 1 TO m
PRINT c(i);
NEXT
Тестирование выполнено в программе QB64 ( Скачать )