CLS
INPUT "Razmernost matrici="; n
DIM a(n, n)
RANDOMIZE TIMER
FOR i = 1 TO n
FOR j = 1 TO n
a(i, j) = INT(RND * 20) - 10
NEXT j
NEXT i
PRINT "Matrica A"
FOR i = 1 TO n
FOR j = 1 TO n
PRINT a(i, j);
NEXT j
PRINT
NEXT i
PRINT
p = 1
FOR i = 1 TO n - 1
p = p * a(i, n - i) * a(i + 1, n - i + 1)
NEXT i
PRINT "Proizv="; p
Тестирование выполнено в программе QB64 ( Скачать )