a, b = map(int, input().split())

if a > b:
    a, b = b, a

for i in range(a, b + 1):
    print(f"{i}단")
    for j in range(1, 10):
        print(f"{i} x {j} = {i * j}")  

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: