1 public static void main(String[] args) { 2 //打印三角形 3 for (int i = 1; i <= 5; i++) { 4 for (int j=5;j>=i;j--){ 5 System.out.print(" "); 6 } 7 for (int j=1;j<=i;j++){ 8 System.out.print("*"); 9 } 10 for (int j=1;j<i;j++){ 11 System.out.print("*"); 12 } 13 System.out.println(); 14 } 15 }
标签:String,day9,int,流程,args,完结 From: https://www.cnblogs.com/GUGUZIZI/p/16756171.html