INPUT " vvedite N ", n
DIM X(n), Y(n), Z(n)
RANDOMIZE TIMER
FOR i = 1 TO n
X(i) = INT(RND * 50)
Y(i) = INT(RND * 50)
NEXT
PRINT "massiv X"
FOR i = 1 TO n
PRINT X(i);
NEXT
PRINT
PRINT "massiv Y"
FOR i = 1 TO n
PRINT Y(i);
NEXT
PRINT
FOR i = 1 TO n
IF X(i) + Y(i) > i ^ 2 THEN k = k + 1: Z(k) = X(i)
NEXT
PRINT "massiv Z"
FOR i = 1 TO k
PRINT Z(i);
NEXT
Тестирование выполнено в программе QB64 ( Скачать )