#使用while第一种效果
i1 = 1
while i1<10:
	j1 = 1
	while j1<i1+1:
		print("{}*{}={:<4}".format(i1,j1,i1*j1),end=" ")
		j1+=1
	i1+=1
	print("")

print("="*85)


#使用while第二种效果
i2 = 9
while i2>0:
	j2 = 1
	while j2<i2+1:
		print("{}*{}={:<4}".format(i2,j2,i2*j2),end=" ")
		j2+=1
	i2-=1
	print("")

print("="*85)


#使用while第三种效果
i3 = 1
while i3<10:
	j3 = 1
	while j3<10:
		if(j3<=9-i3):
			print(" "*8,end=" ")
		else:
			print("{}*{}={:<4}".format(i3,10-j3,i3*(10-j3)),end=" ")
		j3+=1
	i3+=1
	print("")

print("="*85)


#使用while第四种效果
i4 = 9
while i4>0:
	j4 = 1
	while j4<10:
		if(j4<=9-i4):
			print(" "*8,end=" ")
		else:
			print("{}*{}={:<4}".format(i4,10-j4,i4*(10-j4)),end=" ")
		j4+=1
	i4-=1
	print("")

print("="*85)
		