pattern=raw_input('패턴 입력 : ')
n=input('변의 길이 입력 : ')

for i in range(n):
    print ' '*(n-i-1)+pattern*((i+1)*2-1)

for i in range(n):
    print ' '*(i+1)+pattern*((n-i-1)*2-1)
    

Retrieved from http://wiki.zeropage.org/wiki.php/마름모출력/김민경
last modified 2021-02-07 05:29:23