Pascal Triangle Positioning
问题 I made a Java program that prints out a pascal triangle, however I can't figure out how to correctly position it. Program 1 public class Triangle { public static void main() { System.out.println("\nTriangle: "); int row = 11; long[][] triangle = new long[row][row]; triangle[1][1] = 1; System.out.print(triangle[1][1] + "\n"); for (int i = 2; i<row; i++) { for (int n = 1; n<row; n++) { triangle[i][n] = triangle[i-1][n-1] + triangle[i-1][n]; if (triangle[i][n]>0) { System.out.print(triangle[i][n