1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//slope(m in y=mx+c)

  double slope(double x1,double x2,double y1,double y2){

  double dx,dy;

  if(x1<x2){
                dx=x2-x1;
        }
        else{dx=x1-x2;}

        if(y1<y2){
                dy=y2-y1;
        }
        else{dy=y1-y2;}

  double slope=dy/dx;
  int b=slope;
  printf("%d\n",b);

}