for i in range(1,10):
for k in range(1, i+1):
print(k, '*', i, '=', i * k,' ',end='')
print()
i = 1
while i <= 9:
j = 1
while j <= i:
# print(f"{j}*{i}={i*j}", end='\t')
print(j, '*', i, '=', i*j, end='\t')
j += 1
print()
i += 1