()

for i=2 to n

for j=n to i step -1

if A( j-1 ) > A( j ) then

x=A( j-1 )

A( j-1 )=A( j )

A( j )=x

end if

next j

next i




- -  - -  - -