public class Test3{
public static void main(String [] args){
// 输出一个金字塔的图形
for (int i = 0; i < 4; i++) {
for (int j = 3-i; j > 0; j--) {
System.out.print(" ");
}
for(int k = 0;k < 2*i+1;k++){
System.out.print("*");
}
System.out.println();
}
}
}