Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(강영진)2주차 과제 #53

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
File renamed without changes.
Binary file added 강영진/assignment2-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions 강영진/assignment2-1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
a = int(input("input number:"))
for i in range(1, a+1):
print(' ' * (a -i), end ='')
print('*' * (2*i-1))
Binary file added 강영진/assignment2-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions 강영진/assignment2-2.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
a = int(input("input number:"))
for i in range(a, 0, -1):
print(' '*(a -i), end ='' )
print('*'*(2*i-1))
Binary file added 강영진/assignment2-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions 강영진/assignment2-3.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
a = int(input("input number:"))
for i in range(a//2, -1, -1):
print(' '*i + '*'*(a - 2*i))
for i in range(1, a//2 + 1):
print(' '*i + '*'*(a - 2*i))