6 июля 2024
I would like to know which method you guys used to solve this.
By simple definition of slope, it will be [slope = (y2-y1)/(x2-x1)], but by simply defining x and y as a variable doesn't work in this as I would have to manually type x1 then its value, same goes for other math variables (x2, y1, y2).
Am I missing something or do we have to use some extra data outside of Day-3 in the challenge?
Q) Calculate the slope, x-intercept and y-intercept of y = 2x -2