~cpp 
# -*- coding: cp949 -*-



if __name__ == '__main__':
    pattern = raw_input('패턴 입력 : ')
    size = input('변의 길이 : ')
    spc = ' '

    for i in range(size+1):
        print spc*(size-i) + pattern*(2*i-1)

    for i in range(size-1,0,-1):
        print spc*(size-i) + pattern*(2*i-1)


    


Retrieved from http://wiki.zeropage.org/wiki.php/마름모출력/zyint
last modified 2021-02-07 05:29:24