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: &nbsp; the REXX statement (line 11) &nbsp; &nbsp; <big> '''s=trunc(s*.8)''' </big> &nbsp; &nbsp; could've been expressed as: &nbsp; &nbsp; <big> '''s=s*.8%1''' </big> &nbsp; &nbsp; (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. */