Count in octal: Difference between revisions
Content added Content deleted
Langurmonkey (talk | contribs) |
Langurmonkey (talk | contribs) |
||
Line 2,056: | Line 2,056: | ||
We use the :8x interpolation modifier to create a string in base 8 (may use base 2 to 36). |
We use the :8x interpolation modifier to create a string in base 8 (may use base 2 to 36). |
||
<syntaxhighlight lang="langur">val |
<syntaxhighlight lang="langur">val limit = 70 |
||
for |
for i of limit { |
||
writeln |
writeln "10x{{i}} == 8x{{i:8x}}" |
||
} |
|||
</syntaxhighlight> |
|||
{{out}} |
{{out}} |