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 2009-05-27 07:09:19
Processing time 0.0055 sec