Rotate your phone or change to desktop for better experience

Rotate your phone or change to desktop for better experience

4. Display Multiplication Tables

 # To take input from the user

num = int(input("Display multiplication table of? "))

# Iterate 10 times from i = 1 to 10

for i in range(1, 11):

print(num, 'x', i, '=', num*i)

Post a Comment

0 Comments