````javascript
function shape(){
for(var i=-3; i<=3; i++){
for(var n=-3; n<3; n++){
if(Math.abs(i)+Math.abs(n)<=3){
document.write('*')
}else{
document.write(" ")
}
}
document.write('<br>')
}
}
shape()
````
打印三角形
最新推荐文章于 2023-02-05 10:11:46 发布
2893

被折叠的 条评论
为什么被折叠?



