Functions
#include <stdio.h>
double CoulombsLaw (double q1, double q2, double r)
/***********************************************************
/* Coulomb's law for the force acting on two point charges
/* q1 and q2 at a distance r.
/* MKS units are used.
/**********************************************************/
{
double k = 8.9875e9;
return k * q1 * q2 / (r * r);
}
int main ()
{ printf ("%e newtons\n",
CoulombsLaw (1.6e-19, 1.6e-19, 5.3e-11));
return 0;
}