package chenl;
public class zuoye {
public static void main(String[] args) {
// TODO Auto-generated method stub
int n=5;
for(int i=0;i<=n;i++){
for(int j=0;j<n-i;j++){
System.out.print(" ");
}
for(int k=0;k<2*i-1;k++){
System.out.print("*");
}
System.out.println();
}
}
}
输出结果如图!