@@ -0,0 +1,588 @@
+import java.util.Scanner;%0A%0Apublic class PrintingTriangle %7B%0A    public static void main(String%5B%5D args) %7B%0A        Scanner scanner = new Scanner(System.in);%0A        int n = Integer.parseInt(scanner.nextLine());%0A        for (int i = 0; i %3C n; i++) %7B%0A            printLine(1, i);%0A        %7D%0A        printLine(1, n);%0A%0A        for (int j = n - 1; j %3E= 0; j--) %7B%0A            printLine(1, j);%0A        %7D%0A    %7D%0A%0A    private static void printLine(int start, int end) %7B%0A        for (int i = start; i %3C= end; i++) %7B%0A            System.out.print(i + %22 %22);%0A        %7D%0A        System.out.println();%0A    %7D%0A%7D%0A

Create 03.PrintingTriangle.java