import java.util.*; class TriangleDemo { public static void main(String[] args) { System.out.println("请输入要旋转的数:"); Scanner sc = new Scanner(System.in); int l=sc.nextInt() % 2; show(l); } public static void show(int l) { for(int i=1;i<=11;i++) { int k,m; if(i<=6) { k=6 - i; m=6 - i; } else { k = i %6; m = i %6; } while(k>0) { if(l == 0) System.out.print(" "); else System.out.print(" "); k--; } int n = 11-2*m; while(n>0) { if(l == 0) System.out.print("*"); else System.out.print("* "); n--; } System.out.println(); } } }