title: Creating a Christmas Tree using for loops
body: <p>I am trying to make a christmas tree using for loops and nested for loops. For me to do that I need to be able to make a pyramids with *. I have tried countless times and I am having problems making one. Here is my code:</p>
  
  <pre><code>for(int i=1;i&lt;=10;i++){
      for(int j=10;j&gt;i;j--){
          System.out.println(" ");   
      }
  
      for(int k=1;k&lt;=i;k++){
          System.out.print("*");
      }
  
      for(int l=10;l&lt;=1;l++){
          for(int h=1;h&lt;=10;h++){
              System.out.print(" ");
          }
      }
  
      System.out.println();  
  }
  </code></pre>
  
  <p>What I am trying to do is:</p>
  
  <pre><code>     *
      ***
     *****
    *******
  </code></pre>