fork download
  1. import math
  2. x1 = float(input("Введіть x1: "))
  3. y1 = float(input("Введіть y1: "))
  4. x2 = float(input("Введіть x2: "))
  5. y2 = float(input("Введіть y2: "))
  6. distance = math.sqrt((x2 - x1)**2 + (y2 - y1)**2)
  7. print(f"Відстань між точками = {distance:.6f}")
  8. #coment("0JzQtdC70YzQvdC40Log0J3RltC60ZbRgtCw")
Success #stdin #stdout 0.1s 14316KB
stdin
1
54
3
90
stdout
Введіть x1: Введіть y1: Введіть x2: Введіть y2: Відстань між точками = 36.055513