INPUT "kolichestvo strok matrici A="; n
INPUT "kolichestvo stolbcov matrici A="; m
INPUT "chislo H="; h
DIM a(n, m)
DIM b(m)
RANDOMIZE TIMER
FOR i = 1 TO n
FOR j = 1 TO m
a(i, j) = INT(RND * 50) - 25
NEXT j
NEXT i
PRINT "Matrica A"
FOR i = 1 TO n
FOR j = 1 TO m
PRINT a(i, j);
NEXT j
PRINT
NEXT i
FOR i = 1 TO m
b(i) = 0
NEXT i
FOR j = 1 TO m
FOR i = 1 TO n
IF a(i, j) = h THEN b(j) = 1
NEXT i
NEXT j
PRINT
PRINT "V etih stolbcah est chislo "; h
FOR i = 1 TO m
IF b(i) = 1 THEN PRINT i;
NEXT i
PRINT
PRINT "V etih stolbcah net chisla "; h
FOR i = 1 TO m
IF b(i) = 0 THEN PRINT i;
NEXT i
Тестирование выполнено в программе QB64 ( Скачать )