Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from math import sqrt
- arrA = [int(input("Введите координаты точки A: ")) for i in range(2)]
- arrB = [int(input("Введите координаты точки B: ")) for j in range(2)]
- lineA = sqrt(arrA[0]**2 + arrA[1]**2)
- lineB = sqrt(arrB[0]**2 + arrB[1]**2)
- if lineA > lineB:
- print("Точка А удалена больше!")
- elif lineA < lineB:
- print("Точка B удалена больше!")
- else:
- print("Точки удалены на одинаковое расстояние!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement