row = 1
while row <= 9:
col = 1
while col <= row:
result = row * col
print("%d * %d = %d" %(col,row,result),end="\t")
col += 1
print("")
row += 1
Python——99乘法表
最新推荐文章于 2024-09-01 00:00:00 发布
row = 1
while row <= 9:
col = 1
while col <= row:
result = row * col
print("%d * %d = %d" %(col,row,result),end="\t")
col += 1
print("")
row += 1