Count in octal: Difference between revisions

Content added Content deleted
(→‎{{header|Logo}}: Start at 0, per task description.)
Line 347: Line 347:
No built-in octal-formatting, so it's probably more efficient to just manually increment a string than to increment a number and then convert the whole thing to octal every time we print. This also lets us keep counting as long as we have room for the string.
No built-in octal-formatting, so it's probably more efficient to just manually increment a string than to increment a number and then convert the whole thing to octal every time we print. This also lets us keep counting as long as we have room for the string.


<lang logo>to increment_octal :number
<lang logo>to increment_octal :n
ifelse [empty? :n] [
ifelse [empty? :n] [
output 1
output 1