DIM a(65), min(10), max(10)
RANDOMIZE TIMER
FOR i = 1 TO 65
a(i) = INT(RND * 65)
NEXT
PRINT "massiv"
FOR i = 1 TO 65
PRINT a(i); " ";
NEXT
PRINT
t = 1
FOR k = 1 TO 65 \ 10 + 1
min(k) = a(t)
max(k) = a(t)
FOR i = t TO t + 9
IF i > 65 THEN EXIT FOR
IF a(i) > max(k) THEN max(k) = a(i)
IF a(i) < min(k) THEN min(k) = a(i)
NEXT
PRINT
PRINT "max"; k; "desyatka ="; max(k); " ";
PRINT "min"; k; "desyatka ="; min(k)
t = t + 10
NEXT