INPUT "vvedite kolichestvo elementov N ", n
DIM a(n), b(n), f(n * 2)
FOR i = 1 TO n
INPUT "vvedite element massiva A ", a(i)
NEXT
FOR i = 1 TO n
INPUT "vvedite element massiva B ", b(i)
NEXT
PRINT "massiv A"
FOR i = 1 TO n
PRINT a(i);
NEXT
PRINT
PRINT "massiv B"
FOR i = 1 TO n
PRINT b(i);
NEXT
PRINT
FOR i = 1 TO n
f(i * 2 - 1) = a(i)
f(2 * i) = b(i)
NEXT
PRINT "massiv F"
FOR i = 1 TO n * 2
PRINT f(i);
NEXT
Тестирование выполнено в программе QB64 ( Скачать )