I am currently breaking my head over this simple assignment for loops that I have to do.

Basically what I want to achieve is:

1) User gives imput how long the star pyramid should be

2) Make a pyramid with a for loop.

It needs to look something like this:
(If it needs to be 5 stories high; first row is 5 spaces 1 star; second row 4 spaces 2 stars and so on.

```
    *
   **
  *** 
 ****

```

(Hard to format but you get my intention.)

I currently have this

```
    public void Pyramid()
    {
        Console.WriteLine("Give the hight of the pyramid");
        _aantal = Convert.ToInt32(Console.ReadLine());

        for (int i = 1; i <= _aantal; i++) // loop for hight
        {
            for (int d = _aantal; d > 0; d--) // loop for spaces
            {
                Console.Write(_spatie);
            }

            for (int e = 0; e < i; e++) // loop for stars
            {
                Console.Write(_ster);
            }

            Console.WriteLine();
        }
    }

```

The output is always the inserted number amount of spaces and it is not decremented correctly.
Although if I debug it it counts down correctly.

Thank you for responding.