row = 6
for i in range(0, row):
for j in range(row - 1, i, -1):
print(j, '', end='')
for l in range(i):
print(' ', end='') # 4-н хоосон зай авсан
for k in range(i + 1, row):
print(k, '', end='')
print('\n')
No comments:
Post a Comment