Sorting algorithms/Comb sort: Difference between revisions

Content added Content deleted
m (→‎{{header|REXX}}: added an EXIT code.)
Line 2,818: Line 2,818:
call combSort # /*invoke the comb sort (with # entries)*/
call combSort # /*invoke the comb sort (with # entries)*/
call show ' after sort' /*display the after array elements. */
call show ' after sort' /*display the after array elements. */
exit /*stick a fork in it, we're all done. */
exit 0 /*stick a fork in it, we're all done. */
/*──────────────────────────────────────────────────────────────────────────────────────*/
/*──────────────────────────────────────────────────────────────────────────────────────*/
combSort: procedure expose @.; parse arg N /*N: is the number of @ elements. */
combSort: procedure expose @.; parse arg N /*N: is the number of @ elements. */