title: Pascal's Triangle Format
body: <p>The assignment is to create Pascal's Triangle without using arrays. I have the method that produces the values for the triangle below. The method accepts an integer for the maximum number of rows the user wants printed.</p>
  
  <pre><code>public static void triangle(int maxRows) {
      int r, num;
      for (int i = 0; i &lt;= maxRows; i++) {
          num = 1;
          r = i + 1;
          for (int col = 0; col &lt;= i; col++) {
              if (col &gt; 0) {
                  num = num * (r - col) / col;    
              }
              System.out.print(num + " ");
          }
          System.out.println();
      }
  }
  </code></pre>
  
  <p>I need to format the values of the triangle such that it looks like a triangle:</p>
  
  <pre class="lang-none prettyprint-override"><code>              1
              1   1
            1   2   1
          1   3   3   1
        1   4   6   4   1
      1   5  10  10   5   1
    1   6  15  20  15   6   1
  </code></pre>
  
  <p>I can't for the life of me figure out how to do that. Please answer keeping in mind that I'm a beginner in Java programming. </p>