i = 0
while i < 9:
i += 1
# 創建一個內層循環來控制圖形的寬度
j = 0
while j < i:
j += 1
if i * j < 10:
print(f"{j}*{i}={i * j} ", end=" ") # print函數默認end="\n"換行的
else:
print(f"{j}*{i}={i * j} ", end="")
print()