class WoDing {
public static void main(String[] args) {
System.out.println("我顶!");
int z=7;
for (int i=0;i<z ;i++ ){
for (int j=0;j<z-i-1 ;j++ ){
System.out.print(" ");
}
for (int j=0;j<i*2+1 ;j++ ){
System.out.print("顶");}
System.out.println();
}
for (int i = 0;i <= 10 ;i++ ){
System.out.println(" 顶顶顶");
}
}
} |