s = 0 FOR j = 0 TO 6 IF A(j) <= A(j+2)THEN s = s+1 ENDIF NEXT j
t=0 FOR i = 0 TO 9 IF Dat(i) < Dat(9) THEN Dat(9) = Dat(i) t = t+i END IF NEXT i