DIM a(5, 4), min(5), xmin(5), ymin(5)
FOR i = 1 TO 5
FOR j = 1 TO 4
INPUT "vvedite element"; a(i, j)
NEXT
NEXT
PRINT "matrica"
FOR i = 1 TO 5
FOR j = 1 TO 4
PRINT a(i, j); ' ';
NEXT
PRINT
NEXT
FOR i = 1 TO 5
min(i) = a(i, 1)
xmin(i) = i
jmin(i) = 1
FOR j = 1 TO 4
IF a(i, j) < min(i) THEN min(i) = a(i, j): xmin(i) = i: ymin(i) = j
NEXT
NEXT
max = min(1)
xmax = xmin(1)
ymax = ymin(1)
FOR i = 2 TO 5
IF min(i) > max THEN max = min(i): xmax = xmin(i): ymax = ymin(i)
NEXT
PRINT "max="; max; " stroka="; xmax; " stolb="; ymax