/*
* Line Equation Solver - Example Test
* -Write a program that asks for two co-ordinates (x1,y1) & (x2,y2)
* -Your program should output the y=mx+b equation of a line for these two points
*
* Extra points are awarded for properly handling vertical and horizontal lines.
* Extra points are awarded for writing the slope as a fraction rather than a decimal.
*
* MATH:
* Remember, you need to find slope (difference in y / difference in x)
* and to solve for b. Try writing y=mx+b and solving for b
* as a hint as to how to solve for it.
*
* Ex:
First co-ordinate x1: 4
y1: 8
Second co-ordinate x2: 6
y2: 16
Finding the line between (4.0,8.0) and (6.0,16.0)
=====================================
Your equation is: y = 4x - 8.0
=====================================
*/
#include
#include
int main() {
float x1,y1,x2,y2;
float dy,dx;
float m,b;
return 0;
}