Given two coordinates, Print the line equation in Java – Programming Code Examples
Java

Given two coordinates, Print the line equation in Java1 min read

Objective: Given two coordinates (x1, y1) and (x2, y2). Write a java program to construct a line equation that passes through the given coordinates.

Line Equation:

 

Java Code:

 

Output:

 

Leave a Comment