Find limit of recursion: Difference between revisions
Content added Content deleted
(Added various BASIC dialects (Chipmunk Basic, MSX Basic, Minimal BASIC and Quite BASIC)) |
(Added Gambas) |
||
Line 551: | Line 551: | ||
Segmentation fault (core dumped) |
Segmentation fault (core dumped) |
||
</pre> |
</pre> |
||
==={{header|Gambas}}=== |
|||
<syntaxhighlight lang="vbnet">Public Sub Main() |
|||
Recursion(0) |
|||
End |
|||
Sub Recursion(n As Long) |
|||
Print n |
|||
Recursion(1 + n) |
|||
End Sub</syntaxhighlight> |
|||
==={{header|GW-BASIC}}=== |
==={{header|GW-BASIC}}=== |