Advertisement
Guest User

Untitled

a guest
Feb 19th, 2020
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1.  
  2. from math import sqrt
  3.  
  4. x1 = int(input("Ingresa primer cordenada 'x': "))
  5. x2 = int(input("Ingresa segunda cordenada 'x': "))
  6. y1 = int(input("Ingresa primer cordenada 'y': "))
  7. y2 = int(input("Ingresa segunda cordenada 'y': "))
  8.  
  9. distancia = sqrt((x1 - x2)**2 + (y1 - y2)**2)
  10.  
  11. print(distancia)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement