What would happen to a system at equilibrium if the temperature were changed?
An increase in temperature shifts to the reactant side in a exothermic reaction. In an endothermic reaction, the sift is toward the product side.
According to Le Chatelier, a stress that upsets equilibrium, shifts to the side to opposite side to relieve that stress.
In exothermic reaction heat is released, so an increase in temperature will shift the equilibrium to the opposite inside, the reactant side. A decrease in temperature shifts the reaction to the product side.
In an endothermic reaction, heat is absorbed by the reaction, so an increase in temperature will shift to the product side. A decrease in temperature for an endothermic reaction will shift to the reactant side.
Any shifts to the product side will increase the equilibrium constant and a shift to the reactant side will decrease the equilibrium constant.