According to the Coulomb's like charges repel each other; unlike charges attract.
Coulomb’s law can be given as “The electrical force between two charged objects is directly proportional to the product of the quantity of charge on the objects and inversely proportional to the square of the separation distance between the two objects.
If two-point charges and separated by a distance Let be the electrostatic force between these two Charges. According to coulomb's law
.
Nature of the force acting between the charges and are attractive and repulsive forces.
When the product of two charges is positive, the charges cancel each other out. That is to say, both charges are like charges.
When the product of charges is negative, the charges are attracted to one another and have the opposite sign.
Hence, the force acting between two point charges is given by Coulomb’s law and can be attractive and repulsive forces.