Given: number of turns of the solenoid is
The magnetic dipole moment of a solenoid is given as,
Substitute the values in the above equation, we get,
Thus, the magnetic dipole moment is
Since magnetic field is developed along the axis of the solenoid, thus the solenoid acts as a bar magnet.