MAX_NUM = 15
#
# Print column headers
#
# Add space for row labels
print(end='\t')
for j in range(1,MAX_NUM + 1):
    print(j, end='\t')
print()

# Add lines under each header
print(end='\t')
for j in range(1,MAX_NUM + 1):
    print("---", end='\t')
print()

# Iterate through all pairs of numbers, starting with the first row of 1s and multiplying it by each number until MAX_NUM
for i in range(1, MAX_NUM + 1):
    # print row label
    print(i, ":", sep="", end='\t')

    for j in range(1, MAX_NUM + 1):
        print(i*j, end='\t')
    print()