DIM d(5, 5)
INPUT "vvedite M ", m
INPUT "vvedite N ", n
RANDOMIZE TIMER
PRINT "ishodnyj massiv"
FOR i = 1 TO 5
FOR j = 1 TO 5
d(i, j) = INT(RND * 10)
PRINT d(i, j);
NEXT
PRINT
NEXT
PRINT "novyj massiv"
FOR i = 1 TO 5
FOR j = 1 TO 5
IF d(i, j) = m THEN d(i, j) = n
PRINT d(i, j);
NEXT
PRINT
NEXT
Тестирование выполнено в программе QB64 ( Скачать )