INPUT "Vvedite kol-vo strok: ", n
INPUT "Vvedite kol-vo stolbcov: ", m
DIM a(n, m)
INPUT "Vvedite chislo H: ", h
PRINT "Vvedite matricu:"
FOR i = 1 TO n
FOR j = 1 TO m
INPUT a(i, j)
NEXT
NEXT
FOR i = 1 TO n
FOR j = 1 TO m
IF a(i, j) = h THEN PRINT "Stroka s chislom H = "; i
NEXT
NEXT
Тестирование выполнено в программе QB64 ( Скачать )