Skip to content
Snippets Groups Projects
11.py 249 B
Newer Older
hacker717's avatar
hacker717 committed
n, m = int(input()), int(input())

numLength = len(str(n * m))

for i in range(1, (n * m) + 1):
    if i % m == 0 and i:
        print(f"{' ' * (numLength - len(str(i)))}{i}")
    else:
        print(f"{' ' * (numLength - len(str(i)))}{i}", end=" ")