Find limit of recursion: Difference between revisions
Content added Content deleted
(rearranges in order of the language.) |
(Added Axe) |
||
Line 98: | Line 98: | ||
x() |
x() |
||
}</lang> |
}</lang> |
||
=={{header|Axe}}== |
|||
Warning: running this program will cause you to have to clear your RAM. You will lose any data stored in RAM. |
|||
In Axe 1.2.2 on a TI-84 Plus Silver Edition, the last line this prints before hanging is 12520. This should be independent of any arguments passed since they are not stored on the stack. |
|||
<lang axe>RECURSE(1) |
|||
Lbl RECURSE |
|||
.Optionally, limit the number of times the argument is printed |
|||
Disp r₁▶Dec,i |
|||
RECURSE(r₁+1)</lang> |
|||
=={{header|BASIC}}== |
=={{header|BASIC}}== |