# If the slope of a straight line is 0 and the y-intercept is –2, what is the equation of the line?

We can make use of the slope-intercept equation of the line.

## Answer: The equation of the line with slope 0 and y-intercept -2 is y = -2.

0 slope of a line, signifies 0-degree inclination of the line from the x-axis.

**Explanation:**

Given, slope = 0, y-intercept = -2

The general equation of a line is given by: y = mx + c

Putting the values of m and c in the equation.

y = 0 + (-2)