Count in octal: Difference between revisions

m
Line 2,697:
 
==={{header|PL/I-80}}===
If you only need to count, and aren't bothered by the leading zeroes in the output, this will do the trick simply and with a minimum of fuss.
<lang pl/i>
octal_count:
Line 2,735:
177777
</pre>
But a general purpose function to return the octal representation of an integer value mayas provea morestring useful(similar to the OCT$ function in amany varietyBASICs) ofmay contextsprove more useful.<lang pl/i>
<lang pl/i>
octal_count:
procedure options (main);
211

edits