def main():
    row = int(input('行数を入力してください：'))
    column = int(input('列数を入力してください：'))

    for i in range(1, row + 1):
        for j in range(1, column + 1):
            print(f' {i} × {j} =' + ' {:>2} |'.format(f'{i * j}'), end="")
        print('\n')


if __name__ == '__main__':
    main()

f8414ec60170b08a67c67817ff18a8a37edfe56f
<mask token>

def main():
    row = int(input('行数を入力してください：'))
    column = int(input('列数を入力してください：'))
    for i in range(1, row + 1):
        for j in range(1, column + 1):
            print(f' {i} × {j} =' + ' {:>2} |'.format(f'{i * j}'), end='')
        print('\n')


<mask token>

def main():
    row = int(input('行数を入力してください：'))
    column = int(input('列数を入力してください：'))
    for i in range(1, row + 1):
        for j in range(1, column + 1):
            print(f' {i} × {j} =' + ' {:>2} |'.format(f'{i * j}'), end='')
        print('\n')


if __name__ == '__main__':
    main()

def main():
    row = int(input('行数を入力してください：'))
    column = int(input('列数を入力してください：'))

    for i in range(1, row + 1):
        for j in range(1, column + 1):
            print(f' {i} × {j} =' + ' {:>2} |'.format(f'{i * j}'), end="")
        print('\n')


if __name__ == '__main__':
    main()
