contestada

Why do atoms attract each other at farther distances instead of continuously getting repelled by one another? And vice versa: Why do atoms repel each other at shorter distances instead of continuously getting attracted by one another?