-
-
Save xmcclure/08ac836a11db3b15fb4f9d6847975243 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace Test | |
{ | |
class Program | |
{ | |
void Recur(int x) | |
{ | |
Console.WriteLine("In " + x); | |
if (x > 0) { | |
Console.WriteLine("Descend " + x); | |
Recur(x - 1); // BREAKPOINT HERE | |
} | |
Console.WriteLine("Out " + x); | |
} | |
static void Main(string[] args) | |
{ | |
Program p = new Program(); | |
p.Recur(2); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment