for h in range(1,10): for s in range(1,h+1): j = h * s if j >= 10: print(f'{s}*{h}={j}',end=' ') else: print(f'{s}*{h}= {j}',end=' ') print()