08. Center Point
Колеги, може ли да ми помогнете с тази задача:
Ето и моят код:https://pastebin.com/Uh7ZyXS9
1.Center Point
You are given the coordinates of two points on a Cartesian coordinate system - X1, Y1, X2 and Y2. Create a method that prints the point that is closest to the center of the coordinate system (0, 0) in the format (X, Y). If the points are on a same distance from the center, print only the first one.
Examples
Input |
Output |
2 4 -1 2 |
(-1, 2) |
https://judge.softuni.bg/Contests/Compete/Index/305#7