DIM A(20) AS SINGLE
CLS : PRINT "Ishodnaya tablica"
RANDOMIZE TIMER
FOR i = 1 TO 20
A(i) = RND
PRINT A(i);
NEXT:
n=1
for i=1 to 5
IF A(n) < .25 THEN k = k + 1
n=n*2
next
PRINT "Elementov < .25 :"; k
Тестирование выполнено в программе QB64 ( Скачать )