can someone explain to me the program flow of this code:
Thank you very much in advance.
Code:
class Program
{
static void Main(string[] args)
{
Program.count(1);
Console.ReadKey();
}
static int count(int i) {
Console.WriteLine(i);
if (i < 10) {
Console.WriteLine(count(i+1)+(i-1));
}
return 1;
}
}
Comment