title: Pascal's Triangle Recursive calling - Java
body: <p>I know this question is old, and I solved the calculation part of it. but my problem is in the main method and I could not find a solution for it.
  I need to call the Pascal triangle function recursively, but also have the ability to print it upside-down too. I can print the first 10 rows, but I don't know how to flip it to be upside down. here is my code:</p>
  
  <pre><code>public class RecursivePascalTriangle {
  
      static int get_pascal(int row, int col) {
          if (col == 0 || col == row) {
              return 1;
          } else {
              return get_pascal(row - 1, col - 1) + get_pascal(row - 1, col);
          }
  
      }
  
      public static void main(String[] args) {
          for (int i = 0; i &lt; 10; i++) {
              for (int k = 0; k &lt;= i; k++) {
                  System.out.print(get_pascal(i, k) + " ");
              }
              System.out.println();
  
          }
      }
  
  }
  </code></pre>
  
  <p>Can anyone help me in this? I am stuck here. I don't want to use any for loops.Thank you!</p>