If the current in a wire is directed upward, what is the direction of the magnetic field produced by the current?
A. clockwise
B. in the same direction as the current
C. in the opposite direction to the current
D. counterclockwise