public class ImoocStudent {
public static void main(String[] args) throws Exception{
int line = 9;
for(int i = 1; i <= line;i++){
for(int k = 0;k < line - i;k++){
System.out.print(" ");
}
for(int j = 1;j <= i;j++){
System.out.print("* ");
}
System.out.println();
}
}
}
标签:ImoocStudent,java,int,打印,三角形,public
From: https://www.cnblogs.com/pansidong/p/17448869.html