U E D R , A S I H C RSS

마름모출력/윤성복

~cpp 
if __name__=='__main__':

    n = input('입력')

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