CLS
INPUT "Vvvedite kolichestvo strok... ", n
INPUT "Vvedite kolichestvo stolbtsov... ", m
DIM a(n, m), arf(n)
PRINT "Zapolnenie massiva:"
FOR i = 1 TO n
FOR j = 1 TO m
PRINT " Element massiva ("; i; ","; j; ")=";
INPUT " ", a(i, j)
NEXT
NEXT
PRINT "Iskhodnii massiv:"
FOR i = 1 TO n
FOR j = 1 TO m
PRINT a(i, j);
NEXT
PRINT
NEXT
FOR i = 1 TO n
s = 0
FOR j = 1 TO m
s = s + a(i, j)
NEXT
arf(i) = s / m
PRINT "Srednee arifmeticheskoe"; i; "stroki", arf(i)
NEXT
min = arf(1)
indexmin = 1
FOR i = 2 TO n
IF arf(i) < min THEN min = arf(i)
NEXT i
PRINT "Minimalnoe sr. arif"; min; "nakhoditsya v stroke"
FOR i = 1 TO n
IF arf(i) = min THEN PRINT i
NEXT i
Тестирование выполнено в программе QB64 ( Скачать )