1
2
3
4
5
6
7
8
9
10
|
import sys
n=int(sys.stdin.readline())
for i in range(n):
for j in range(i): print(" ",end='')
for j in range(2*(n-i)-1): print("*",end='')
print("")
for i in range(1,n):
for j in range(n-i-1): print(" ",end='')
for j in range(2*(i+1)-1): print("*",end='')
if i!=n-1:print("")
|
cs |
반응형
댓글