CLS
n = 5: m = 5
DIM a(n, m)
RANDOMIZE TIMER
FOR i = 1 TO n
FOR j = 1 TO m
a(i, j) = INT(RND * 200) - 100
NEXT j
NEXT i
PRINT "Ishodnaya matrica"
FOR i = 1 TO n
FOR j = 1 TO m
PRINT a(i, j);
NEXT j
PRINT
NEXT i
PRINT
INPUT "k="; k
FOR j = 1 TO m
a(k, j) = a(k, j) / a(k, k)
NEXT j
PRINT "matrica posle preobrazovaniy"
FOR i = 1 TO n
FOR j = 1 TO m
PRINT a(i, j);
NEXT j
PRINT
NEXT i
Тестирование выполнено в программе QB64 ( Скачать )