Python Program to print multiplication table of n up to m using For loop

Python Program to print multiplication table of n up to m using For loop

Write Python Program to print multiplication table of n up to m using For loop

# Write Python Program to print multiplication table of n up to m using For loop

n = 13
m = 7
for i in range(1, m + 1):
    print(f'{n} x {i} = {m * i}')

Output:

13 x 1 = 7
13 x 2 = 14
13 x 3 = 21
13 x 4 = 28
13 x 5 = 35
13 x 6 = 42
13 x 7 = 49