Towers of Hanoi: Difference between revisions

Content added Content deleted
(→‎{{header|BASIC}}: Add demo version with only global variables.)
Line 144: Line 144:
</lang>
</lang>


Here's an example of old BASICs that don't support stack-local variables:
Here's an example of implementing recursion in an old BASIC that only has global variables:


{{works with|BASIC_Commodore_PET}}
{{works with|BASIC_Commodore_PET}}