Towers of Hanoi: Difference between revisions
Content added Content deleted
(→{{header|BASIC}}: fix implementation link) |
|||
Line 146: | Line 146: | ||
Here's an example of implementing recursion in an old BASIC that only has global variables: |
Here's an example of implementing recursion in an old BASIC that only has global variables: |
||
{{works with| |
{{works with|Commodore_BASIC}} |
||
<lang freebasic>10 DIM N(1024), F(1024), T(1024), V(1024): REM STACK PER PARAMETER |
<lang freebasic>10 DIM N(1024), F(1024), T(1024), V(1024): REM STACK PER PARAMETER |
||
20 SP = 0: REM STACK POINTER |
20 SP = 0: REM STACK POINTER |