Printing all the integers from 0 to n in in descending order order using recursive method : <p>I made a little program to practice recursions, but I can't get it to work as intended as you can see. In its current state, the program kinda works but not like I want it to. </p>

<p>What I am looking for is to print values from int N to 0 in descending order rather than from 10 to N as it is currently in the code.</p>

<pre><code>private static void DescendingRecursion(int n)
    {

        if (n == 10) // Base case
            return;
        else {
            DescendingRecursion(n + 1);
            Console.Write(n + " ");
        }
    }
    static void Main(string[] args)
    {
        DescendingRecursion(0);
    }
</code></pre>

<p>(output: 9 8 7 6 5 4 3 2 1 0)</p>
