N = int(eval(input()))
for row in range(1,N+1):
if row%2 != 0:
a = '*'*row
print ('{}'.format(a.center(N,' ')))
row += 2
liangmingshen 2018-05-16 16:19 原文
N = int(eval(input()))
for row in range(1,N+1):
if row%2 != 0:
a = '*'*row
print ('{}'.format(a.center(N,' ')))
row += 2