python,乘法九九表小程序
num1 = 1
num2 = 1
while num1 <= 9:
while num2 <= num1:
print(str(num1)+"*"+str(num2)+"="+str(num1*num2)+" ",end="")
num2 +=1
print()
num2 = 1
num1 += 1
num1 = 1
num2 = 1
while num1 <= 9:
while num2 <= num1:
print(str(num1)+"*"+str(num2)+"="+str(num1*num2)+" ",end="")
num2 +=1
print()
num2 = 1
num1 += 1