DIM a(5), b(5), c(10)
RANDOMIZE TIMER
FOR i = 1 TO 5
a(i) = INT(RND * 10)
b(i) = INT(RND * 10)
NEXT
PRINT "massiv A"
FOR i = 1 TO 5
PRINT a(i);
NEXT
PRINT
PRINT "massiv B"
FOR i = 1 TO 5
PRINT b(i);
NEXT
PRINT
FOR i = 1 TO 5
c(i * 2 - 1) = a(i) - b(i)
c(i * 2) = a(i) + b(i)
NEXT
PRINT "massiv c"
FOR i = 1 TO 10
PRINT c(i);
NEXT