没人发我来试试

rows = int(input())
for row in range(1,rows+1):
    for col in range(1,row+1):
        print(f'{row}*{col}={row*col}',end=' ')
    print()