#include <stdio.h>
main()
{
float x1, x2, y1, y2, m, b;
printf("Input x1, y1: ");
scanf("%f %f", &x1, &y1);
printf("Input x2, y2: ");
scanf("%f %f", &x2, &y2);
m = (y2 - y1) / (x2 - x1);
b = y1 - m * x1;
printf("The slope = %f and the y intercept = %f\n", m, b);
return 0;
}