Skip to content

Commit

Permalink
4주차
Browse files Browse the repository at this point in the history
  • Loading branch information
waroad committed May 19, 2021
1 parent f3108fa commit 6bb95e6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions 4주차.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
n = int(input("N : "))
for i in range(n):
print(" " * (n - i) + "*" * (2 * i + 1))
for i in range(n, -1, -1):
print(" " * (n - i) + "*" * (2 * i + 1))

0 comments on commit 6bb95e6

Please sign in to comment.