Home » Print Multiplication Table in given Range Python

# Print Multiplication Table in given Range Python

Learn about Print Multiplication Table in given Range Python in the below code example. Also, refer to the comments in the code snippet to get a detailed view about what’s actually happening.

Contents

#### Print Multiplication Table in given Range Python

The below program prints the Multiplication table of the numbers in the given range. The Given of numbers is given by the user.

``````# Python program to print multiplication table in range

# input
print('print multiplication table')
start = int(input('Start: '))
end = int(input('End: '))

# print multiplication table
for i in range (start, end+1):
print('\n\nMultiplication table of %d\n' %(i))
for j in range(1, 11 ):
print('%d * %d = %d\t' %(i, j, i*j))``````

Output:

```print multiplication table
Start: 2
End: 4

Multiplication table of 2

2 * 1 = 2
2 * 2 = 4
2 * 3 = 6
2 * 4 = 8
2 * 5 = 10
2 * 6 = 12
2 * 7 = 14
2 * 8 = 16
2 * 9 = 18
2 * 10 = 20

Multiplication table of 3

3 * 1 = 3
3 * 2 = 6
3 * 3 = 9
3 * 4 = 12
3 * 5 = 15
3 * 6 = 18
3 * 7 = 21
3 * 8 = 24
3 * 9 = 27
3 * 10 = 30

Multiplication table of 4

4 * 1 = 4
4 * 2 = 8
4 * 3 = 12
4 * 4 = 16
4 * 5 = 20
4 * 6 = 24
4 * 7 = 28
4 * 8 = 32
4 * 9 = 36
4 * 10 = 40	```

Hope above code works for you and Refer the below Related Codes to gain more insights. Happy coding and come back again.

Similar Code : Print Multiplication Table in Python