Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. #_*_coding:cp1251_*_
  2. from math import sqrt
  3. Ax=float(input('введите координату Х точки A --> '))
  4. Ay=float(input('введите координату Y точки A --> '))
  5. Bx=float(input('введите координату Х точки B --> '))
  6. By=float(input('введите координату Y точки B --> '))
  7. d=sqrt((Ax-Bx)**2+(Ay-By)**2)
  8. print d
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement