Question: #include #include int main() { float slope, M; int point1,point2, b, Y; printf(=============================Equation Computation===============================); printf( Enter The Slope Of A Line: ); scanf(%f, &slope); printf(
#include
int main()
{
float slope, M; int point1,point2, b, Y;
printf("=============================Equation Computation==============================="); printf(" Enter The Slope Of A Line: "); scanf("%f", &slope);
printf(" Enter A Point On The Line: "); scanf("%d,%d", &point1,&point2);
b = point2 - slope*point1; M = slope; Y = Mx + b; printf(" The Equation Of The Line Is: ", Y);
return(0);
}
I just want the equation of the line to be displayed, What needs to be fixed here. I assume its something with the Y ?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
