Count in octal: Difference between revisions

Content added Content deleted
imported>Thebeez
Line 2,052: Line 2,052:


=={{header|langur}}==
=={{header|langur}}==
We have to use an arbitrary limit for this.
We use an arbitrary limit for this.


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).
Line 2,058: Line 2,058:
<syntaxhighlight lang="langur">val .limit = 70000
<syntaxhighlight lang="langur">val .limit = 70000


for .i = 0; .i <= .limit; .i += 1 {
for .i of .limit {
writeln $"10x\.i; == 8x\.i:8x;"
writeln $"10x\.i; == 8x\.i:8x;"
}</syntaxhighlight>
}</syntaxhighlight>