[Homework] Programming Fundamentals - Methods. Debugging and Troubleshooting Code - Exercises - 08.Center Point
Здравейте, накой може ли за ми каже защо на 6 от 10 теста ми дава Runtime Error и как да го оправя?
Условие - https://judge.softuni.bg/Contests/Compete/Index/305#7
"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. "
Моя код - https://pastebin.com/eFFwxxqa