class Sanjiaoxing_2{
void lingxing(){
for(int x=0;x<7;x++){
for(int y=x;y<7;y++){
System.out.print(" ");
}
for(int z=0;z<=x;z++){
System.out.print("* ");
}
System.out.println();
}
for(int m=0;m<=5;m++){
for(int y=0;y<=m;y++){
System.out.print("-");
}
for(int z=m;z<=6;z++){
System.out.print("* ");
}
System.out.println();
}
}
}
public class dengbiansanjiaoxing {
public static void main(String [] args){
Sanjiaoxing_2 s2=new Sanjiaoxing_2();
s2.lingxing();
}
}
|
|