N = int(input());
for i in range(1,N+1):
for j in range(N,i,-1):
print(" ",end="")
for k in range(1,i+1):
print(str(k)+" ",end="")
print("")
for i in range(1,N+1):
for j in range(1,i+1):
print(" ",end="")
for k in range(1,N-i+1):
print(str(k)+" ",end="")
print("")
Comments
Leave a comment