CLS
RANDOMIZE TIMER
ny = 5
nx = 6
DIM a(ny, nx), b(ny, nx)
FOR y = 1 TO ny
FOR x = 1 TO nx
a(y, x) = FIX(RND * 37 - 16)
NEXT
NEXT
FOR y = 1 TO ny
FOR x = 1 TO nx
b(y, x) = a(y, x) * 3
NEXT
NEXT
min = b(1, 1)
FOR y = 1 TO ny
FOR x = 1 TO nx
IF b(y, x) < min THEN min = b(y, x)
NEXT
NEXT
PRINT "matrica m"
FOR y = 1 TO ny
FOR x = 1 TO nx
PRINT a(y, x);
NEXT
PRINT
NEXT
PRINT "matrica m*3"
FOR y = 1 TO ny
FOR x = 1 TO nx
PRINT b(y, x);
NEXT
PRINT
NEXT
PRINT "min="; min
Тестирование выполнено в программе QB64 ( Скачать )