Count in octal: Difference between revisions
Content added Content deleted
m (→{{header|REXX}}: added wording to the REXX section header.) |
|||
Line 2,010: | Line 2,010: | ||
=={{header|REXX}}== |
=={{header|REXX}}== |
||
If this REXX program wouldn't be stopped, it would count ''forever''. |
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.*/ |
<lang rexx>/*REXX program counts in octal until the number exceeds #pgm statements.*/ |
||
/*┌────────────────────────────────────────────────────────────────────┐ |
/*┌────────────────────────────────────────────────────────────────────┐ |