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 #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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!