DIM m0(3, 4), m1(3, 4)
OPEN "dm0.dat" FOR INPUT AS #1
PRINT "ishodnyj massiv"
FOR i = 1 TO 3
FOR j = 1 TO 4
INPUT #1, a(i, j)
PRINT a(i, j);
NEXT
PRINT
NEXT
CLOSE
OPEN "dm1.dat" FOR OUTPUT AS #2
PRINT "novyj massiv"
FOR i = 1 TO 3
FOR j = 1 TO 4
m(i, j) = ABS(TAN(m0(i, j)) + SQR(2 * j +i))
PRINT m(i, j);
PRINT #2, m(i, j);
NEXT
PRINT
PRINT #2, ""
NEXT
CLOSE