Like poles of a magnet attract, while the unlike poles repel each other.
Two like magnetic poles :
(a) repel each other
(b) attract each other
(c) first attract each other, then repel
(d) neither attract nor repel.