for(let i=0;i<=3;i++){
var a='';
    for(let j=0;j<=i;j++){
        a=a+' ';
    }
    for(let h=3;h>=i;h--){
        a=a+'* '
    }
    console.log(a);
}

相关文章:

  • 2021-09-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-16
  • 2022-12-23
  • 2021-12-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-04
相关资源
相似解决方案