X------
7 1 1
3 0 -3
-18 -2 8
Z------
2 8 -7
3 10 -1
7 18 19
DIM x(3, 3), y(3, 3), z(3, 3)
DATA 7,1,1,3,0,-3,18,-2,8
DATA 2,8,-7,3,10,-12,7,18,19
PRINT "massiv X"
FOR i = 1 TO 3
FOR j = 1 TO 3
READ x(i, j)
PRINT x(i, j);
NEXT
PRINT
NEXT
PRINT "massiv Z"
FOR i = 1 TO 3
FOR j = 1 TO 3
READ z(i, j)
PRINT z(i, j);
NEXT
PRINT
NEXT
PRINT "massiv Y"
FOR i = 1 TO 3
FOR j = 1 TO 3
y(i, j) = x(i, j) - z(i, j)
PRINT y(i, j);
NEXT
PRINT
NEXT
Тестирование выполнено в программе QB64 ( Скачать )