Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from math import sqrt
- x1 = int(input("Ingresa primer cordenada 'x': "))
- x2 = int(input("Ingresa segunda cordenada 'x': "))
- y1 = int(input("Ingresa primer cordenada 'y': "))
- y2 = int(input("Ingresa segunda cordenada 'y': "))
- distancia = sqrt((x1 - x2)**2 + (y1 - y2)**2)
- print(distancia)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement