public class qq6{
public static void main(String [] args){
for(int h = 1;h<=5;h++){//定义行数为h
for(int l= 1;l<=5-h;l++){//看不见的倒三角
System.out.print(" ");
}
for(int k = 1;k<=2*h-1;k++){
System.out.print("*");
}
System.out.println();
}
}
}
public class qq6{
public static void main(String [] args){
for(int h = 1;h<=5;h++){//定义行数为h
for(int l= 1;l<=5-h;l++){//看不见的倒三角
System.out.print(" ");
}
for(int k = 1;k<=2*h-1;k++){
System.out.print("*");
}
System.out.println();
}
}
}