INPUT "vvedite kol-vo elementov ", n
DIM a(n)
RANDOMIZE TIMER
PRINT "massiv"
FOR i = 1 TO n
a(i) = INT(RND * 100)
PRINT a(i);
NEXT
PRINT
FOR i = 1 TO n
a(i) = a(i) + 3
NEXT
PRINT "novyy massiv"
FOR i = 1 TO n
PRINT a(i);
NEXT
Тестирование выполнено в программе QB64 ( Скачать )