INPUT "vvedite kolichestvo strok ", m
INPUT " vvedine kolichestvo stolbcov ", n
DIM a(m, n), b(m, n)
RANDOMIZE TIMER
PRINT "ishodnyj massiv "
FOR i = 1 TO m
FOR j = 1 TO n
a(i, j) = INT(RND * 20) - 10
PRINT a(i, j);
NEXT
PRINT
NEXT
min = a(1, 1)
FOR i = 1 TO m
FOR j = 1 TO n
IF a(i, j) < min THEN min = a(i, j)
NEXT
NEXT
PRINT "min="; min
PRINT "novyj massiv"
FOR i = 1 TO m
FOR j = 1 TO n
b(i, j) = a(i, j) * min
PRINT b(i, j);
NEXT
PRINT
NEXT
Тестирование выполнено в программе QB64 ( Скачать )