class Rack {
public static void main(String[] args) {
for (int a=1;a<=5 ;a++ ){
for (int b=5;b>=a ;b-- ){
System.out.print(" ");
}
for (int c=a;c>=1 ;c-- ){
System.out.print("* ");
//System.out.println();
}
System.out.println();
}
System.out.println();
}
}
(欢迎纠错!!!) |
|