Count in octal: Difference between revisions

m (→‎{{header|Wren}}: Minor tidy)
 
(One intermediate revision by one other user not shown)
Line 1,019:
Local (2) ' digit C@ and string D@
' initialize, save sign
d@ := Dup("") : Push a@ < 0 : a@ = Abs(a@)
Do
Line 2,052:
 
=={{header|langur}}==
We have to 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).
Line 2,058:
<syntaxhighlight lang="langur">val .limit = 70000
 
for .i = 0; .i <=of .limit; .i += 1 {
writeln $"10x\.i; == 8x\.i:8x;"
}</syntaxhighlight>
885

edits