Anonymous user
Sorting algorithms/Shell sort: Difference between revisions
m
→{{header|REXX}}: added whitespace, changed some comments.
m (→{{header|REXX}}: added whitespace, changed some comments.) |
|||
Line 2,761:
call gen /*generate the array elements. */
call show 'before sort' /*display the before array elements. */
call shellSort # /*invoke the shell sort. */
call show ' after sort' /*display the after array elements. */
exit
/*──────────────────────────────────────────────────────────────────────────────────────*/
gen:
/*──────────────────────────────────────────────────────────────────────────────────────*/
shellSort: procedure expose @.; parse arg N /*obtain the N from the argument list*/
i= N %
return
/*──────────────────────────────────────────────────────────────────────────────────────*/
show:
{{out|output|text= when using the (internal) inputs:}}
<pre style="height:85ex">
|