if n%2==0:
for i in range(1,n):
if i<=n/2:
for j in range(1, abs(n - i) + 1):
print(end=" ")
for k in range(1,2*i):
print("*",end="")
else:
a=n/2
b=i-a
i=a-b
j=1
while j
if n%2==0:
for i in range(1,n):
if i<=n/2:
for j in range(1, abs(n - i) + 1):
print(end=" ")
for k in range(1,2*i):
print("*",end="")
else:
a=n/2
b=i-a
i=a-b
j=1
while j