Count in octal: Difference between revisions

Add min
(Add min)
Line 1,258:
count_in_octal(N + 1, !IO).
</lang>
 
=={{header|min}}==
{{works with|min|0.19.3}}
min has no support for octal or base conversion (it is a minimalistic language, after all) so we need to do that ourselves.
<lang min>(
(dup 0 ==) (pop () 0 shorten)
(((8 mod) (8 div)) cleave) 'cons linrec
reverse 'print! foreach newline
) :octal
 
0 (dup octal succ)
9.223e18 int times ; close to max int value</lang>
 
=={{header|МК-61/52}}==
1,808

edits