Skip to content

Commit

Permalink
2024-04-09 직각삼각형 출력하기
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghdrn1399 committed Apr 10, 2024
1 parent 88eee6e commit a6ba11e
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
1 change: 1 addition & 0 deletions honggukang0623/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
|:----:|:---------:|:----:|:-----:|:----:|
| 1차시 | 2024.03.26 | 사칙연산 |[분수의덧셈]https://school.programmers.co.kr/learn/courses/30/lessons/120808 | [#5]https://github.com/AlgoLeadMe/AlgoLeadMe-10/pull/5 |
| 2차시 | 2024.03.29 | 배열 |[배열두배만들기]https://school.programmers.co.kr/learn/courses/30/lessons/120809 | [#7]https://github.com/AlgoLeadMe/AlgoLeadMe-10/pull/7 |
| 3차시 | 2024.04.05 | 배열 |[중앙값구하기]https://school.programmers.co.kr/learn/courses/30/lessons/120811# | [#13]https://github.com/AlgoLeadMe/AlgoLeadMe-10/pull/13 |
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
const readline = require('readline');
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout
});

let input = [];

rl.on('line', function (line) {
input = line.split(' ');
}).on('close', function () {
const n = Number(input[0]);

let line = 1;
while(line <= n){

let starStr = "";
let cnt = 0;
while(cnt < line){
starStr = starStr+"*"
cnt = cnt + 1;
}

console.log(starStr)
line = line + 1;
}
});

0 comments on commit a6ba11e

Please sign in to comment.