Remember the function to find the slope of a line given two points?

Divide the difference of the two y values (the rise) by the difference between the two x values (the run): (y2 - y1)/(x2 - x1)

Let's write a program to calculate the slope of a line for us, if we give it two points.