U E D R , A S I H C RSS

마름모출력/조현태

No older revisions available

No older revisions available



잠와서 졸기 시작했음. 머리가 안돌아감. 분명히 내일보면 내가 왜 이렇게 짯을지 후회할 것입.
그래도 졸림...우후후후...
~cpp 

def prin():
    for l in range (size-k,0,-1):
        print ' ',
    for l in range (0,2*k+1):
        print pat,
    print 

if __name__ == '__main__':
    pat= str (raw_input('패턴을 입력해주세요>>'))
    size=input('크기를 입력해 주세요>>')
    for k in range (size):
        prin ()
    for k in range (size-2,-2,-1):
        prin ()

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