CLS
DIM X(5, 4)
min = 1E+38
RANDOMIZE TIMER
FOR i = 1 TO 5
FOR j = 1 TO 4
X(i, j) = INT(RND * 20) - 10
NEXT
NEXT
PRINT "massiv"
FOR i = 1 TO 5
FOR j = 1 TO 4
PRINT X(i, j); " ";
NEXT
PRINT
NEXT
FOR i = 1 TO 5
FOR j = 1 TO 4
IF X(i, j) > 0 AND X(i, j) < min THEN min = X(i, j)
NEXT
NEXT
PRINT "Naimenshiy iz polojitelnih"; min
Тестирование выполнено в программе QB64 ( Скачать )