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

Find the limit of recursion.




MODULE recur;
 
IMPORT InOut;
 
PROCEDURE recursion (a : CARDINAL);
 
BEGIN
  InOut.Write ('.');    (*  just count the dots....     *)
  recursion (a + 1)
END recursion;
 
BEGIN
  recursion (0)
END recur.