print ("which multiplication table would you like?")
num = int(input())
print ("here is your table")
for i in range(1,11):
print ("%d * %d" %(num,i) + " = " + str(num * i) )
8-2 乘法表while
print ("which multiplication table would you like?")
num = int(input())
print ("here is your table")
i = 1
while i <= 10:
print ("%d * %d" %(num,i) + " = " + str(num * i) )
i += 1
8-3 乘法表 自定义高度
print ("which multiplication table would you like?" )
num = int(input())
print ("How high do you want to go?" )
num_high = int(input())
print ("here is your table")
i = 1
while i <= num_high:
print ("%d * %d" %(num,i) + " = " + str(num * i) )
i += 1