In Java: Using a recursive method generate a 12 row pascal\'s triangle. When the program reaches row 7-12 have the program mirror rows 1-6. So row 7 will have the same numbers as row 6, row 8 will have the same numbers as row 5, and so on. An example of the final output 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1 1 5 10 10 5 1 1 5 10 10 5 1 1 4 6 4 1 1 3 3 1 1 2 1 1 1 1 Thank you! Solution Solution : Please follow these coding as shown in below.. import java.util.Scanner; public class PascalTriangle { public static void print(int n) { for (int i = 0; i < n; i++) { for (int j = 0; j <= i; j++) { System.out.print(pascal(i, j) + \" \"); } System.out.println(); } } public static int pascal(int i, int j) { if (j == 0) { return 1; } else if (j == i) { return 1; } else { return pascal(i - 1, j - 1) + pascal(i - 1, j); } } public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.print(\"Enter the row number upto which Pascal\'s triangle has to be printed: \"); int row = scanner.nextInt(); print(row); } } .