Skip to content

Commit

Permalink
#12 22.05.30 > 직사각형 별찍기
Browse files Browse the repository at this point in the history
  • Loading branch information
beurmuz committed May 30, 2022
1 parent dba5ede commit bd0d210
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/programmers/Lv_1/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Lv_1
|문제명|푼 날짜|채점 결과|재응시여부|
|---|:---:|:---:|:---:|
|[직사각형 별찍기](./starRectangle.js)|22.05.30|O|X|
12 changes: 12 additions & 0 deletions src/programmers/Lv_1/starRectangle.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
process.stdin.setEncoding('utf8');
process.stdin.on('data', data => {
const n = data.split(' ');
const width = Number(n[0]), height = Number(n[1]);
for(let i = 0; i < height; i++) {
let answer = '';
for(let j = 0; j < width; j++) {
answer += '*';
}
console.log(answer);
}
});

0 comments on commit bd0d210

Please sign in to comment.