#打印9 9乘法哥
for i in range(1,10):
for j in range(1,i + 1):
# print(j,"*",i,"=",j*i,end=" ")
print("%d * %d =" %(j,i),j * i,end=" ")
print(" ")
for i in range(1,5):
print((5 - i) * " ",end="")
print(i * "* ")
for i in range(5,8):
print((i - 3) * " ",end="")
print(( 8 - i) * "* ")
for i in range(4):
for j in range(4):
print("* ",end="")
print("")
for i in range(5,8):
print((i - 3) * " ",end="")
print(( 8 - i) * "* ")
for i in range(1,5):
print((5 - i) * " ",end="")
print(i * "* ")