while True:
    n = int(input('Give me a number: '))
    r = int(input('Tell me the rows: '))
    if n == 0:
        break
    for i in range(1, r + 1):
        print(n, 'x', i, '=', n * i)

ebf96d368f2e4e4c95f928092df1993315b17fca
<mask token>

while True:
    n = int(input('Give me a number: '))
    r = int(input('Tell me the rows: '))
    if n == 0:
        break
    for i in range(1, r + 1):
        print(n, 'x', i, '=', n * i)
