CLS
INPUT "Kolvo elementov massivov="; n
DIM a(n), b(n), c(n)
RANDOMIZE TIMER
FOR i = 1 TO n
a(i) = INT(RND * 101) - 50
NEXT i
PRINT "Massiv a"
FOR i = 1 TO n
PRINT a(i);
NEXT i
PRINT
FOR i = 1 TO n
b(i) = INT(RND * 101) - 50
NEXT i
PRINT "Massiv B"
FOR i = 1 TO n
PRINT b(i);
NEXT i
PRINT
FOR i = 1 TO n
c(i) = a(i) + b(i)
NEXT i
PRINT "Massiv C"
FOR i = 1 TO n
PRINT c(i);
NEXT i
Тестирование выполнено в программе QB64 ( Скачать )