CLS
INPUT "kolvo strok="; n
INPUT "kolvo stolbcov="; m
DIM a(n, m)
RANDOMIZE TIMER
FOR i = 1 TO n
FOR j = 1 TO m
a(i, j) = INT(RND * 101) - 50
NEXT j
NEXT i
PRINT "Ishodniy massiv"
FOR i = 1 TO n
FOR j = 1 TO m
PRINT a(i, j);
NEXT j
PRINT
NEXT i
PRINT
max = a(1, 1)
FOR i = 1 TO n
FOR j = 1 TO m
IF a(i, j) > max THEN max = a(i, j)
NEXT j
NEXT i
PRINT "Maksim element="; max
PRINT
FOR i = 1 TO n
FOR j = 1 TO m
a(i, j) = a(i, j) * max
NEXT j
NEXT i
PRINT "Massiv posle preobrazovaniy"
FOR i = 1 TO n
FOR j = 1 TO m
PRINT a(i, j);
NEXT j
PRINT
NEXT i
Тестирование выполнено в программе QB64 ( Скачать )