c=1 FOR i = 1 TO 9 IF A( i-1 ) >= A(i) THEN t = A( i ) A( i ) = A( i-1) A( i-1 ) = t ELSE c = c * 2 END IF NEXT i