Created
April 5, 2017 04:00
-
-
Save nattybear/3309b45b7173d0f9142905a9d862094c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while True: | |
num = int(input()) | |
if num < 3 or num % 2 == 0: continue | |
dot = 1 | |
blank = int(num / 2) | |
while dot < num: | |
print(' ' * blank + '*' * dot) | |
dot += 2 | |
blank -= 1 | |
while dot > 0: | |
print(' ' * blank + '*' * dot) | |
dot -= 2 | |
blank += 1 | |
select = int(input()) | |
if select == 0: break |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment