title: c# Loops with stars and spaces
body: <p>I am currently breaking my head over this simple assignment for loops that I have to do.</p>
  
  <p>Basically what I want to achieve is:</p>
  
  <p>1) User gives imput how long the star pyramid should be</p>
  
  <p>2) Make a pyramid with a for loop.</p>
  
  <p>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.</p>
  
  <pre><code>    *
     **
    *** 
   ****
  </code></pre>
  
  <p>(Hard to format but you get my intention.)</p>
  
  <p>I currently have this</p>
  
  <pre><code>    public void Pyramid()
      {
          Console.WriteLine("Give the hight of the pyramid");
          _aantal = Convert.ToInt32(Console.ReadLine());
  
          for (int i = 1; i &lt;= _aantal; i++) // loop for hight
          {
              for (int d = _aantal; d &gt; 0; d--) // loop for spaces
              {
                  Console.Write(_spatie);
              }
  
              for (int e = 0; e &lt; i; e++) // loop for stars
              {
                  Console.Write(_ster);
              }
  
              Console.WriteLine();
          }
      }
  </code></pre>
  
  <p>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.</p>
  
  <p>Thank you for responding.</p>