CLS
INPUT n
DIM A(n), B(n * 2), C(n)
FOR i = 1 TO n * 2
B(i) = RND * 50 + 10
PRINT B(i);
NEXT: PRINT
FOR i = 1 TO n
A(i) = B(i * 2)
C(i) = B(i * 2 - 1)
NEXT
PRINT "A :"
FOR i = 1 TO n
PRINT A(i);
NEXT: PRINT
PRINT "C :"
FOR i = 1 TO n
PRINT C(i);
NEXT
Следующий вариант
CLS
RANDOMIZE TIMER
INPUT K
DIM C(K), A(K), B(2 * K)
FOR I = 1 TO 2 * K
B(I) = INT(RND * 100)
PRINT B(I);
NEXT I
PRINT
FOR I = 1 TO 2 * K
IF I MOD 2 = 0 THEN
C(I / 2) = B(I)
PRINT C(I / 2);
ELSE
A((I + 1) / 2) = B(I)
END IF
NEXT I
PRINT
FOR I = 1 TO K
PRINT A(I);
NEXT I