title: Program that outputs the lower right triangle with the input dimensions
body: <p>the code I have so far allows for a right side triangle to be drawn but when the user inputs a higher dimension, the triangle no longer follows that pattern. </p>
  
  <pre><code> for (int x=0; x&lt;=n; x++){
               for (int i=3; i&gt;=x; i--){
                   System.out.print(" ");
               }
               for (int y=1; y&lt;=x; y++){
                   System.out.print("*");
               }
               System.out.println(" ");
           }
   System.out.println("\n4)\n");
  </code></pre>