Multiplication Table in Python

Posted by gideonna
  737
April 13, 2016

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

# use for loop to iterate 10 times
for i in range(1,11):
   print(num,'x',i,'=',num*i)