📜  打印乘法表python代码示例

📅  最后修改于: 2022-03-11 14:45:23.975000             🧑  作者: Mango

代码示例1
# Multiplication table (from 1 to 10) in Python

num = 12

# To take input from the user
# num = int(input("Display multiplication table of? "))

# Iterate 10 times from i = 1 to 10 By AyushG
for i in range(1, 11):
   print(num, 'x', i, '=', num*i)