'''Python program to find the

multiplication table (from 1 to 10)'''

num = 12

# To 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):

12 x 2 = 24

12 x 3 = 36

12 x 4 = 48

12 x 5 = 60

12 x 6 = 72

12 x 7 = 84

12 x 8 = 96

12 x 9 = 108

12 x 10 = 120

multiplication table (from 1 to 10)'''

num = 12

# To 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)

## Output:

12 x 1 = 1212 x 2 = 24

12 x 3 = 36

12 x 4 = 48

12 x 5 = 60

12 x 6 = 72

12 x 7 = 84

12 x 8 = 96

12 x 9 = 108

12 x 10 = 120

## 0 Comments:

## Post a comment