U E D R , A S I H C RSS

마름모출력/정수민 (rev. 1.1)

마름모출력/정수민


k = raw_input('패턴 입력 : ')

n = input('변의 길이 입력 : ')

for z in range(1,n):
    print ' '*(n-z),k*((z*2)-1)
for z in range(1,n)[::-1]:
    print ' '*(n-z),k*((z*2)-1)

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:29:24
Processing time 0.0157 sec