public class lianxi2 {

    public static void main(String[] args) {
        // TODO 自动生成的方法存根
for (int hs=1;hs<11;hs++){
                //画空格
                for (int kg=9;kg>=hs;kg--){
                    
                    System.out.print(" ");
                    }
                //画点
                    for(int ds=1;ds<=hs;ds++){
                        System.out.print("*");
                    }
                    //继续画点
                    for(int ds2=1;ds2<hs;ds2++){
                        System.out.print("*");
                    }
                    System.out.println();
                }
            
            for (int hs=9;hs>0;hs--){
                for (int kg=9;kg>=hs;kg--){
                    System.out.print(" ");
                    }
                    for(int ls=1;ls<=hs;ls++){
                        System.out.print("*");
                    }
                    for(int d3=1;d3<hs;d3++){
                        
                        System.out.print("*");
                    }
                    
                    
                    System.out.println();
                }
            }
            
                } 
        
    
        
    

1.7作业

相关文章:

  • 2021-08-02
  • 2021-05-17
  • 2021-09-14
  • 2022-12-23
  • 2022-01-22
  • 2021-08-16
  • 2022-12-23
猜你喜欢
  • 2021-12-21
  • 2021-07-06
  • 2022-02-08
  • 2021-09-21
  • 2021-09-02
  • 2021-09-16
  • 2021-05-08
相关资源
相似解决方案