public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.println("请输入数值"); int x = input.nextInt(); for (int z = 1; z <= x; z++) { for (int y = 1; y <= z; y++) { System.out.print(y + "*" + z + "=" + y * +z + "\t"); } System.out.println(); } }