- class Test{
- public static void main(String[] args){
- for (int x = 1;x < 9 ;x++ ){
- for (int y = 0;y<9-x ; y++){
- System.out.print(" ");
- }
- for (int z = 0;z < x ;z++ ){
- System.out.print("* ");
- }
- System.out.println("");
- }
- }
- }
复制代码 这个老毕的视频里面有,我们老师没讲.咱们俩一个班的,你不认识我! |
|