INPUT "vvedite kol-vo elem", n
DIM a(n)
FOR i = 1 TO n
INPUT "vvedite element", a(i)
NEXT
PRINT "matrica"
FOR i = 1 TO n
PRINT a(i)
NEXT
PRINT
DIM y(n)
FOR i = 1 TO n
y(i) = 2 * a(i)
NEXT
FOR i = 1 TO n
PRINT y(i)
NEXT
Следующий вариант
INPUT "vvedite kol-vo elem", n
DIM a(n)
FOR i = 1 TO n
INPUT "vvedite element", a(i)
NEXT
PRINT "Ishodniy massiv"
FOR i = 1 TO n
PRINT a(i);
NEXT
PRINT
FOR i = 1 TO n
a(i) = a(i) * 2
NEXT
PRINT "Massiv posle preobrazovaniy"
FOR i = 1 TO n
PRINT a(i);
NEXT
Тестирование выполнено в программе QB64 ( Скачать )