Explanation:
According to Coulomb's inverse square law, the electrostatic force generated due to two charges placed at a distance is
inversely proportional to the square of the distance between these two charges.

If we apply a force in a straight line to the charges that are repulsive, the force will be repulsive, and if the charges are opposite, the force will be attractive.
Final Answer:
Hence, according to Coulomb's inverse square law in electricity
.