Вычислить элементы матрицы с, являющейся сумой матриц а и b размер матрицы 3*7 — Basic(Бейсик)

DIM a(1 TO 3, 1 TO 7) AS INTEGER
DIM b(1 TO 3, 1 TO 7) AS INTEGER
DIM c(1 TO 3, 1 TO 7) AS INTEGER
FOR i = 1 TO 3
FOR j = 1 TO 7
INPUT "BBEDITE A", A(i,j)
INPUT "BBEDITE B", B(i,j)
NEXT i
NEXT j
 
FOR i = 1 TO 3
FOR j = 1 TO 7
c(i,j)=a(i,j)+b(i,j)
PRINT c,i,j
NEXT i
NEXT j
END

Leave a Comment