CLS
n = 4
DIM a(n, n)
FOR i = 1 TO n
FOR j = 1 TO n
PRINT "vvedite a("; i; ","; j; ")"
INPUT a(i, j)
NEXT
NEXT
PRINT "matrica"
FOR i = 1 TO n
FOR j = 1 TO n
PRINT a(i, j);
NEXT
PRINT
NEXT
FOR i = 1 TO n
FOR j = 1 TO n
IF a(i, j) < 3 THEN a(i, j) = 0
NEXT
NEXT
PRINT "new matrica"
FOR i = 1 TO n
FOR j = 1 TO n
PRINT a(i, j);
NEXT
PRINT
NEXT
Тестирование выполнено в программе QB64 ( Скачать )