Question: Write a C program that will read two points (x1,y1) and (x2,y2). It will then calculate the slope and the y- intercept for the

Write a C program that will read two points (x1,y1) and (x2,y2). 

Write a C program that will read two points (x1,y1) and (x2,y2). It will then calculate the slope and the y- intercept for the line that passes in those two points. m = x2-x1 c=y-m.x Where m is the slope and c is the y-intercept. Note: The target of this task is to show knowledge in ignoring input, so each point should be entered from the user in the (x,y) format.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Here is a C program that reads two points x1 y1 and x2 y2 from the user and calculates the ... View full answer

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 Programming Questions!