Which factor has the least effect on the strength of an electromagnet?
A. The length of the connecting wires
B. The number of coils of wire.
C. The material of the core.
D. The strength of the battery