Count in octal: Difference between revisions

Content added Content deleted
(→‎J: simplify)
imported>Chinhouse
No edit summary
Line 2,406: Line 2,406:
0 (dup octal succ)
0 (dup octal succ)
9.223e18 int times ; close to max int value</syntaxhighlight>
9.223e18 int times ; close to max int value</syntaxhighlight>

=={{header|MiniScript}}==
<syntaxhighlight lang="miniscript">
toOctal = function(n)
result = ""
while n != 0
octet = n % 8
n = floor(n / 8)
result = octet + result
end while
return result
end function

maxnum = 10 ^ 15 - 1
i = 0
while i < maxnum
i += 1
print i + " = " + toOctal(i)
end while
</syntaxhighlight>


=={{header|МК-61/52}}==
=={{header|МК-61/52}}==