用java输出任意层数的三角形 Scanner scanner = new Scanner(System.in); System.out.println("please input:"); int n=scanner.nextInt()