Find limit of recursion: Difference between revisions

added Inform 7 solution
(→‎{{header|J}}: briefer using adverse)
(added Inform 7 solution)
Line 368:
==={{header|Unicon}}===
This Icon solution works in Unicon.
 
=={{header|Inform 7}}==
<lang inform7>Home is a room.
 
When play begins: recurse 0.
 
To recurse (N - number):
say "[N].";
recurse N + 1.</lang>
 
Using the interpreters built into Windows build 6F95, a stack overflow occurs after 6529 recursions on the Z-machine or 2030 recursions on Glulx.
 
=={{header|J}}==
Anonymous user