public class Solution { public static int[][] MULTIPLICATION_TABLE; public static void main(String[] args) { MULTIPLICATION_TABLE = new int[10][10]; for(int a = 0; a < 10;a++) { if(a == 0) { for(int i = 0; i < 10;i++) { MULTIPLICATION_TABLE[a][i] = i + 1; System.out.print(MULTIPLICATION_TABLE[a][i] + " "); } System.out.println(); } else if(a == 1) { for(int i = 0; i < 10;i++) { MULTIPLICATION_TABLE[a][i] = MULTIPLICATION_TABLE[a - 1][i] + MULTIPLICATION_TABLE[0][i]; System.out.print(MULTIPLICATION_TABLE[a][i] + " "); } System.out.println(); } else if(a == 2) { for(int i = 0; i < 10;i++) { MULTIPLICATION_TABLE[a][i] = MULTIPLICATION_TABLE[a - 1][i] + MULTIPLICATION_TABLE[0][i]; System.out.print(MULTIPLICATION_TABLE[a][i] + " "); } System.out.println(); } else if(a == 3) { for(int i = 0; i < 10;i++) { MULTIPLICATION_TABLE[a][i] = MULTIPLICATION_TABLE[a - 1][i] + MULTIPLICATION_TABLE[0][i]; System.out.print(MULTIPLICATION_TABLE[a][i] + " "); } System.out.println(); } else if(a == 4) { for(int i = 0; i < 10;i++) { MULTIPLICATION_TABLE[a][i] = MULTIPLICATION_TABLE[a - 1][i] + MULTIPLICATION_TABLE[0][i]; System.out.print(MULTIPLICATION_TABLE[a][i] + " "); } System.out.println(); } else if(a == 5) { for(int i = 0; i < 10;i++) { MULTIPLICATION_TABLE[a][i] = MULTIPLICATION_TABLE[a - 1][i] + MULTIPLICATION_TABLE[0][i]; System.out.print(MULTIPLICATION_TABLE[a][i] + " "); } System.out.println(); } else if(a == 6) { for(int i = 0; i < 10;i++) { MULTIPLICATION_TABLE[a][i] = MULTIPLICATION_TABLE[a - 1][i] + MULTIPLICATION_TABLE[0][i]; System.out.print(MULTIPLICATION_TABLE[a][i] + " "); } System.out.println(); } else if(a == 7) { for(int i = 0; i < 10;i++) { MULTIPLICATION_TABLE[a][i] = MULTIPLICATION_TABLE[a - 1][i] + MULTIPLICATION_TABLE[0][i]; System.out.print(MULTIPLICATION_TABLE[a][i] + " "); } System.out.println(); } else if(a == 8) { for(int i = 0; i < 10;i++) { MULTIPLICATION_TABLE[a][i] = MULTIPLICATION_TABLE[a - 1][i] + MULTIPLICATION_TABLE[0][i]; System.out.print(MULTIPLICATION_TABLE[a][i] + " "); } System.out.println(); } else if(a == 9) { for(int i = 0; i < 10;i++) { MULTIPLICATION_TABLE[a][i] = MULTIPLICATION_TABLE[a - 1][i] + MULTIPLICATION_TABLE[0][i]; System.out.print(MULTIPLICATION_TABLE[a][i] + " "); } } } //напишите тут ваш код } }