c = 0 FOR i = 1 TO 9 IF A(i) = A(0) THEN c = c+A(0) t = A (i+1) A(i + 1) = A(i - 1) A(i-1)=t ENDIF NEXT i