cls
dim a(20)
randomize timer
for i = 1 to 20
a(i)=rnd(1)*50
next i
for i = 1 to 19 step 2
s=s+a(i)
next i
mi=a(1)
for i = 1 to 20
if mi>a(i) then mi=a(i)
next i
? mi
input q
for i = 1 to 20
if a(i)^2>q then ? a(i);
next i
Тестирование выполнено в программе QB64 ( Скачать )