class Dengbian {
public static void main(String[] args) {
for (int x = 1;x <= 6 ;x++ ) {
for (int y = 1;y <= 5 ;y++ ) {
System.out.print("*");
}
System.out.print("\n");
}
for (int x = 1;x <= 6 ;x++ ) {
for (int y = 6;y >=x ;y-- ){
System.out.print(" ");
}
for (int y = 1;y <= x ;y++ ){
System.out.print("* ");
}
System.out.print("\n");
}
}
}
|
|