In the following blog. we have used the for loop to display the multiplication table of n.
number = int(input(" Please Enter any number less than 10 : "))
print(" Multiplication Table ")
for i in range(number, 10):
for j in range(1, 11):
print('{0} * {1} = {2}'.format(i, j, i*j))
print('==============')
Please Enter any number less than 10 : 8
Multiplication Table
8 * 1 = 8
8 * 2 = 16
8 * 3 = 24
8 * 4 = 32
8 * 5 = 40
8 * 6 = 48
8 * 7 = 56
8 * 8 = 64
8 * 9 = 72
8 * 10 = 80
==============
9 * 1 = 9
9 * 2 = 18
9 * 3 = 27
9 * 4 = 36
9 * 5 = 45
9 * 6 = 54
9 * 7 = 63
9 * 8 = 72
9 * 9 = 81
9 * 10 = 90