Count in octal: Difference between revisions

(add sed)
(→‎Joy: add)
Line 1,771:
document.writeln(n.toString(8)); // not sure what's the best way to output it in JavaScript
}</syntaxhighlight>
 
=={{header|Joy}}==
<syntaxhighlight lang="joy">DEFINE
digit == "01234567" of;
oct == "\n" [pop 7 >] [[8 div digit] dip cons] while swap digit swons.
 
0 [0 >=] [dup oct putchars succ] while pop.</syntaxhighlight>
 
=={{header|jq}}==
559

edits