Computer Science, asked by sejalb3759, 1 year ago

Write a program that prompts the user to enter the coordinates of two points (xi, yl) and (x2, y2), and displays the slope of the line that connects the two points. The formula of the slope is (y2 - yi) / (x2 - here\is a sample run: enter the x-toordinate for pointl: 4.5 enter the y-coordinate for pointl: -5.5 enter the x-coordinate for point2: 6.6 enter the y-coordinate for point2: -6.5 the slope for the line that connects two points (4.5, -5.5) and (6.6, -6.5) is -0.47619


sswaraj04: programming language

Answers

Answered by Anonymous
0

Write a program that prompts the user to enter the coordinates of two points (xi, yl) and (x2, y2), and displays the slope of the line that connects the two points. The formula of the slope is (y2 - yi) / (x2 - here\is a sample run: enter the x-toordinate for pointl: 4.5 enter the y-coordinate for pointl: -5.5 enter the x-coordinate for point2: 6.6 enter the y-coordinate for point2:

Similar questions