Scanner sc = new Scanner(System.in); int x = sc.nextInt(); sc.close(); int[][] matrix = new int[x][x]; int count = 1; for (int i = 0; i < matrix.length; i++) { for (int j = 0; j < matrix.length; j++) { matrix[i][j] = count++; } } for (int i = 0; i < matrix.length; i++) { for (int j = 0; j < matrix.length; j++) { System.out.print(matrix[i][j] + "\t"); } System.out.println(); } There is a typical code for displaying the matrix on the screen, but at the exit the top lines move out. What is the reason?

