Find limit of recursion is part of Short Circuit's Console Program Basics selection.
Task

Find the limit of recursion.




def recurse (int counter)
    try
        recurse (+ counter 1)
    catch recursionerror
        out "the limit of recursion was " counter endl console
    end try
end
 
recurse 1