직사각형 별찍기

직사각형 별찍기
1
2
3
4
5
6
7
8
9
10
11
12
// https://programmers.co.kr/learn/courses/30/lessons/12969
process.stdin.setEncoding('utf8');
process.stdin.on('data', (data) => {
const n = data.split(' ');
const a = Number(n[0]),
b = Number(n[1]);

for (let index = 0; index < b; index++) {
const row = '*'.repeat(a);
console.log(row);
}
});

해설

  • 별찍기!
Author

chinsung

Posted on

2020-09-18

Updated on

2021-07-12

Licensed under

댓글