for col in range(2, 10):
if col > 5:
break
for row in range(1, 10):
print (col, " x ", row, " = ", col * row)