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

**Solution: **

Given: The slope of a straight line is 0 and y intercept = -2

The general equation of a line is y = mx + c --- (1)

Where m is the slope of the line and c is the intercept of the line.

Put the values of m and c in the equation (1) we get,

⇒ y = (0)x + (-2)

⇒ y = 0 - 2

⇒ y = -2

Thus the equation obtained is that of a horizontal line and it is y = -2.

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

**Summary: **

If the slope of the straight line is 0 and the y-intercept is -2 then the equation of the line will be y = -2.

Math worksheets and

visual curriculum

visual curriculum