Sorting algorithms/Bubble sort: Difference between revisions

m
→‎{{header|Icon}}: sample output
(+Icon+Unicon)
m (→‎{{header|Icon}}: sample output)
Line 712:
return
end</pre>
 
Sample output:
<pre>--- bubblesort ---
op = "<<"
before = [ 3 "4" "5" "6" "22" "1" "7" "9" ]
after = [ "1" "22" 3 "4" "5" "6" "7" "9" ]
 
--- bubblesort ---
op = "<"
before = [ 3 "4" "5" "6" "22" "1" "7" "9" ]
after = [ "1" 3 "4" "5" "6" "7" "9" "22" ]
 
--- bubblesort ---
op = &null
before = "qwerty"
after = "eqrtwy"
</pre>
 
=={{header|J}}==
Anonymous user