i have a question related to c mostly but can be solved with c++ or any other language as well it is my home task and i am having some trouble these is the input and this is the question:
The coordinates of points are given on a plane. Sort them in increasing order of sum of coordinates. In the case of equal sum of point coordinates sort the points in increasing order of abscissa.
Input
Each line contains the pair of numbers x, y (0 ≤ x, y ≤ 10^9) - the coordinates of one point. The number of points does not exceed 10^5. Read the points till the end of file.
Output
Print the points in the specified order.