- 链接地址:https://blog.csdn.net/weixin_44388087/article/details/113567642
- 链接标题:前端JS算法之打印星星_js打印五角星-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:810
第一种(左直角)function theOutputOne(n) { let star = ''; for(let i = 0; i < n; i++) { star += '*' console.log(star) }}theOutputOne(11)第二种(右直角)function theOutputTwo(n) { let star = ''; for(let i = 0; i < n; i++) {._js打印五角星
版权声明:本文发布于特牛生活网 内容均来源于互联网 如有侵权联系删除
标签:js打印五角星