Find limit of recursion: Difference between revisions

Content added Content deleted
m (→‎{{header|C}}: rephransing a bit)
Line 56: Line 56:
Setting a limit on the recursion depth can be done like this:
Setting a limit on the recursion depth can be done like this:


<lang dos>
<lang dos>@echo off
@echo off
set c=0
set c=0
:mung
:mung
Line 65: Line 64:
call :mung %c%
call :mung %c%
set /a c=%1-1
set /a c=%1-1
echo [Level %c%] No good
echo [Level %c%] No good</lang>
</lang>


=={{header|C}}==
=={{header|C}}==