for i in range(2, 10): for j in range(1, 10): print ( str(i) + " x " + str(j) + " = " + str(i*j) )