U E D R , A S I H C RSS

마름모출력/허아영

~cpp 

if __name__== '__main__':
    print '패턴 입력 : '
    p = raw_input()
    print '  변의 길이 입력 :'
    n = input()

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

    for i in range(n):
        print ' '*(i+1),
        print p*(2*(n-1-i)-1)
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:29:24
Processing time 0.0135 sec