Python 打印9*9乘法表(While)

Python 打印9*9乘法表

i=1

while i <= 9:

j =1

while j <= i:

print("%d * %d = %d “%(j,i,i*j),end=”\t")

j += 1

print(" " ,end= “\n”)

i += 1

猜你喜欢

转载自blog.csdn.net/weixin_42560626/article/details/83149965