Count in octal: Difference between revisions

m
m (→‎{{header|J}}: echo and smoutput do the same thing, but echo is easier for more people to understand at a glance (it's also shorter))
Line 2,820:
 
=={{header|S-BASIC}}==
Although many (most?) BASICs have ana built-in OCT$ function, S-BASIC does not, so we have to supply our own
<lang BASIC>
rem - return p mod q
Line 2,849:
</lang>
{{out}}
Showing first and last 10 lines of output
<pre>
1
Line 2,858 ⟶ 2,859:
7
10
11
12
...
77766
77767
77770
77771
211

edits