No older revisions available
No older revisions available
~cpp if __name__ == '__main__': p = raw_input('패턴 입력: ') n = input('변의 길이 입력: ') for i in range(1, n+1, 2): print ' '*((n-i)/2), p*i for i in range(n-2, 0, -2): print ' '*((n-i)/2), p*i
~cpp if __name__ == '__main__': p = raw_input('패턴 입력: ') n = input('변의 길이 입력: ') for i in range(1, n+1, 2): print ' '*((n-i)/2), p*i for i in range(n-2, 0, -2): print ' '*((n-i)/2), p*i