package practice;
public class Practice {
public static void main(String[] args) {
7、
*
**
* *
* *
*****
for (int i = 1; i <= 5; i++) {
for (int j = 1; j <= i; j++) {
if(i==5||j==1||i==j){
System.out.print("*");
}else{
System.out.print(" ");
}
}
System.out.println();
}
}
}