728x90
let input = require('fs').readFileSync('/dev/stdin').toString().split("\n");
const loop = +input[0];
for (i = 1; i <= loop; i++) {
let stars = ""
for (j = 0; j <= i-1; j++) {
stars += "*"
}
console.log(stars.trim());
}
*
**
***
****
*****
์ฒจ์ ์ ํ๋ ธ๋ ํ๋๋ * * * * ์ด๋ฐ์์ผ๋ก ๋์ด์ฐ๊ธฐ ๋์ด์๋ ์ค ์๊ณ "* " ์ด ๊ฐ์ ์ถ๋ ฅํจ.
"*" ์ด๋ ๊ฒ ์ถ๋ ฅํด์ผํจ
728x90
๋ฐ์ํ
'ํ์ ๊ณต๋ถ > ๐ซง ์๊ณ ๋ฆฌ์ฆ ๊ณต๋ถ' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[๋ฐฑ์ค/Node.js] 10952๋ฒ ํ์ด || JavaScript (1) | 2023.02.28 |
---|---|
[๋ฐฑ์ค/Node.js] 2439๋ฒ ํ์ด || JavaScript (0) | 2023.02.27 |
[๋ฐฑ์ค/Node.js] 11021, 11022๋ฒ ํ์ด || JavaScript (0) | 2023.02.27 |
[๋ฐฑ์ค/Node.js] 15552๋ฒ ํ์ด || JavaScript (0) | 2023.02.26 |
[๋ฐฑ์ค/Node.js] 25314๋ฒ ํ์ด || JavaScript (0) | 2023.02.25 |