I think this should work, but i can get it to work. Anyone got any ideas on why it is not working..??
------------------------------------------------------------------------------
#include <stdio.h>
#include <conio.h>
main()
{
int x1, y1, x2, y2, m ;
printf ( "To find the slope of your line enter the following: \n" ) ;
printf ( "The First set of points. eg. (x,y) \n" ) ;
scanf ( "%d" , &x1 ) ;
scanf ( "%d" , &y1 ) ;
printf ( "The Second set of points. eg. (x,y) \n" ) ;
scanf ( "%d" , &x2 ) ;
scanf ( "%d" , &y2 ) ;
m = ( y2 - y1 ) / (x2 - x1) ;
printf ( "The slope is %d \n" ,m ) ;
getch () ;
}
-----------------------------------------------------------------------------