Jump to content

Sorting algorithms/Comb sort: Difference between revisions

m
→‎{{header|REXX}}: added an EXIT code.
m (→‎{{header|REXX}}: added an EXIT code.)
Line 2,818:
call combSort # /*invoke the comb sort (with # entries)*/
call show ' after sort' /*display the after array elements. */
exit 0 /*stick a fork in it, we're all done. */
/*──────────────────────────────────────────────────────────────────────────────────────*/
combSort: procedure expose @.; parse arg N /*N: is the number of @ elements. */
Cookies help us deliver our services. By using our services, you agree to our use of cookies.