Here\'s my code
using System; public class Program { public static void Method(int flowerInVase) { if (flowerInVase > 0) {
Because it does this:
flowerInVase = 3 call Method(3) call Method(2) call Method(1) WriteLine(1) WriteLine(2) WriteLine(3)
Output then is:
1 2 3
If you reverse the lines:
Console.WriteLine(flowerInVase); Method(flowerInVase - 1);
It will print first, then recurse, so it will print 3, 2, 1 instead.