python11 python 打印九九乘法表

"""
打印9*9乘法表
"""
row = 1
while row <= 9:
    col = 1
    while col <= row:
        print("%d*%d=%d     " % (col, row, col * row), end="")
        col += 1
    print()
    row += 1

猜你喜欢

转载自blog.csdn.net/qq_35524586/article/details/84931274
今日推荐