0

Whats wrong with this im just dumb and couldnt figure it out help please

```
//SLOPE
import java.io.*;
public class SLOPE {
public static void main(String args [ ]) {
int Y2, Y1, X2, X1;
BufferedReader reader;
reader = new BufferedReader(new InputStreamReader(System.in));
try {
System.out.print("\nY2 =");
Y2 = Integer.parseInt(reader.readLine( ));
System.out.print("Y1 = ");
Y1 = Integer.parseInt(reader.readLine( ));
System.out.print("X2 = ");
X2 = Integer.parseInt(reader.readLine( ));
System.out.print("X1 = ");
X1 = Integer.parseInt(reader.readLine( ));
reader.close ( );
}
catch (IOException ioe) {
System.out.println("An error accoured while calculating this equation try again");
}
catch (NumberFormatException nfe) {
System.out.println("An error accoured while calculating this equation try again");
}
System.out.println( "The slope is" + ( (Y2 - Y1) / (X2 - X1)));
}
}
```

*Edited 3 Years Ago by happygeek*: fixed formatting