title: Printing stars in triangle shape using for loops
body: <p>I need to print something like this style in C#</p>
  
  <pre><code>*****
   ***
    *
  </code></pre>
  
  <p>how could I go about this?</p>
  
  <p>So far I got the following code, but it prints the other way and reducing by one star. </p>
  
  <pre><code>int number = 5;
  int i, j, k;
  for (i = 1; i &lt;= number; i++)
  {
      for (j = 1; j &lt;= number - i; j++)
      {                    
          Console.Write("");
      }
  
      for (k = 1; k &lt;= i; k++)
      {
          Console.Write("*");
      }
  
      Console.WriteLine("");
  }
  </code></pre>