I have written the code which will print the slope from the coordinates of a line and then print it. but when I give input, my code is terminating. what is the problem?
#include<bits/stdc++.h>
using namespace std;
int main()
{
    int x1,y1,x2,y2,m;
    cin>>x1>>y1>>x2>>y2;
    m=(y1-y2)/(x1-x2);
    cout<<m;
}
 
     
     
    