Slope program

slope equation

/* calculate the slope of the line between 
* the point (x1,y1) and (x2,y2) where the slope equation is above
* And the output will look like:
* The slope of (5,7) and (-1,10) is 0.5
*/

        int x1 = readInt("Enter the x coordinate of point 1");
        int y1 = readInt("Enter the y coordinate of point 1");
        int x2 = readInt("Enter the x coordinate of point 2");
        int y2 = readInt("Enter the y coordinate of point 2");