for (int i=0;i<10;i++){
for (int j=0;j<10;j++){
if(j>i){
System.out.print(" ");
}else{
System.out.print("*");
}
}
System.out.println();
}
----------------
*
**
***
****
*****
******
*******
********
*********
**********
for (int i = 0; i <知棚燃和哗 10; i++)
{
for (int j = 0; j <=i; j++)
{
System.out.print("*");
}
System.out.print("\n"搭虚);
}
system.out.print("*");
system.out.println();
for(int i=0;i<备茄扰10;i++){
System.out.print("\纳败n"仿旦);
for(int j=0;j<=i;j++){
System.out.print("*");
}
}