Answer:
electrical to magnetic energy
Step-by-step explanation:
In an electromagnet, the electric current produces magnetic field. A conducting wire is wrapped into coil. when current is passed through the coil, magnetic field is concentrated at the center of the coil.
Here, a battery is used to produce current in the wire. Thus, electrical energy gets converted to magnetic energy.