An electromagnet needs a magnetic metal core. To produce a magnetic field, what else is required?
A. A permanent magnet
B. A solenoid with current running through it
C. A second metal core
D. A solenoid with no current running through it ​