Anonymous user
Sorting algorithms/Comb sort: Difference between revisions
m
→{{header|REXX}}: added a programming note.
m (→{{header|REXX}}: changed indentations, whitespace, comments, added some other polygon names.) |
m (→{{header|REXX}}: added a programming note.) |
||
Line 1,449:
=={{header|REXX}}==
Programming note: the REXX statement (line 11) <big> '''s=trunc(s*.8)''' </big> could've been expressed as: <big> '''s=s*.8%1''' </big> (which is slower), but is more cryptic.
<lang rexx>/*REXX program sorts a stemmed array using the comb-sort algorithm. */
call gen@; w=length(#) /*generate the array elements. */
|