The slope of a line can be positive, negative, zero, or undefined. The horizontal line does not rise vertically (y1 − y2 = 0), so the slope is zero, but the vertical line does not extend horizontally (that is, x1 − x2 = 0), so the slope is undefined. As mentioned above, the horizontal line has zero slopes. This does not mean that the horizon has no slope. Since the horizontal line is m=0, it is represented symbolically by the expression y=b. Functions defined by horizontal lines are often called constant functions. The slope of the vertical line is undefined. Any two points on the vertical line have the same x-coordinate, so the gradient cannot be computed as a finite number according to the equation
M=(y2-y1)/(x2-x1)
This is because division by zero is an undefined operation.
More similar problems are solved in the given link below.
https://brainly.com/question/3605446?referrer=searchResults
#SPJ4