U E D R , A S I H C RSS

마름모출력/zyint

~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)


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