The factors that directly affect the magnetic force produced by an electromagnet are:
C. number of turns in the wire, amount of current
The strength of the magnetic field produced by an electromagnet depends on the amount of current flowing through the coil and the number of turns of wire in the coil.