Count in octal: Difference between revisions

Content deleted Content added
Edmund (talk | contribs)
Added ZX81 BASIC
Edmund (talk | contribs)
m →‎{{header|Sinclair ZX81 BASIC}}: trivial edit—apologies, I should proofread more carefully
Line 294:
 
==={{header|Sinclair ZX81 BASIC}}===
The octal number is stored and manipulated as a string, meaning that even with only 1k of RAM the program shouldn't stop until the number gets to a couple of hundred digits long. I have <i>not</i> left it running long enough to find out exactly when it does run out of memory. The <code>SCROLL</code> statement is necessary: the ZX81 halts when the screen is full unless it is positively told to scroll up instead.
<lang basic> 10 LET N$="0"
20 SCROLL