CLS
DIM A(4), B(4, 4)
PRINT "Vvedite tselie chisla A1,A2,A3,A4: "
FOR i = 1 TO 4
INPUT A(i)
NEXT i
PRINT "Matritsa B "
FOR i = 1 TO 4
FOR j = 1 TO 4
B(i, j) = A(i) - 3 * A(j)
PRINT USING "####"; B(i, j);
NEXT j
PRINT
NEXT i
Тестирование выполнено в программе QB64 ( Скачать )