Skip to content

Commit

Permalink
feat(#8): 2348. 별찍기
Browse files Browse the repository at this point in the history
아_백준왜자꾸틀리다고함
  • Loading branch information
lledellebell committed Jan 10, 2023
1 parent dd1ce2c commit ee03ee6
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
6 changes: 6 additions & 0 deletions class01/2348/bee.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
function printRightTriangle(size) {
for (var i = 1; i <= size; i++) {
console.log('*'.repeat(i));
}
}
printRightTriangle(5);
7 changes: 7 additions & 0 deletions class01/2348/bee.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# 반복문을 이용해
# 직각 삼각형 만들기
def print_right_triangle(size):
for i in range(1, size+1):
print('*' * i)

print_right_triangle(5)
6 changes: 6 additions & 0 deletions class01/2348/bee.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
function RightTriangle(size: number): void {
for (let i = 1; i <= size; i++) {
console.log('*'.repeat(i));
}
}
RightTriangle(5);

0 comments on commit ee03ee6

Please sign in to comment.