11=1
12=2 22=4
i=1
while i<=9:
j=1
while j<=i:
print("%d*%d=%d "%(j,i,j*i),end="")
j+=1
print("\n")
i+=1
运行结果:
11=1
12=2 22=4
i=1
while i<=9:
j=1
while j<=i:
print("%d*%d=%d "%(j,i,j*i),end="")
j+=1
print("\n")
i+=1
运行结果: