Strange numbers: Difference between revisions

Content added Content deleted
(Add COBOL)
m (→‎{{header|REXX}}: added COMMAS function.)
Line 1,640: Line 1,640:
commas(HI) ' (inclusive)'
commas(HI) ' (inclusive)'
say
say
if show then say strip($)</lang>
if show then say strip($)
exit 0
/*──────────────────────────────────────────────────────────────────────────────────────*/
commas: parse arg _; do jc=length(_)-3 to 1 by -3; _=insert(',', _, jc); end; return _</lang>
{{out|output|text=&nbsp; when using the default inputs:}}
{{out|output|text=&nbsp; when using the default inputs:}}
<pre>
<pre>