python代码:
#乘法口诀表
for i in range(1,10):
for j in range(1,(i+1)):
print('%d*%d=%d\t'%(i,j,i*j),end='')
print('\n')
#逆乘法口诀表
for i in range(1,10):
for j in range(i,10):
print('%d*%d=%d\t'%(i,j,i*j),end='')
print('\n')