Count in octal: Difference between revisions

m
→‎{{header|REXX}}: added wording to the REXX section header.
m (→‎{{header|REXX}}: added wording to the REXX section header.)
Line 2,010:
=={{header|REXX}}==
If this REXX program wouldn't be stopped, it would count ''forever''.
 
The technique used is to convert the decimal number to binary, and seperate the binary digits in groups of three, and then convert those binary groups (numbers) to decimal.
<lang rexx>/*REXX program counts in octal until the number exceeds #pgm statements.*/
/*┌────────────────────────────────────────────────────────────────────┐