The 4 quadrants of a 2D space are:
Point P is in Quadrant II.
The input vector will always have exactly 1 quadrant. Ignore the case of points that are along the axis (e.g. 0,y and x,0 are not valid inputs).
Hint: you can use
Math.floor(1.23) to get
Math.ceil(1.23) to get
The first line of the input contains the integer
d. The remaining
d lines each contain 2 integers, the first column is vector 1 and the second column is vector 2.
The output contains vector 1, vector 2 and the result of adding the vectors. The + and = should be on the last line of the output.