Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- x1 = float(input("Please enter x1"))
- y1 = float(input("Please enter y1"))
- x2 = float(input("Please enter x2"))
- y2 = float(input("Please enter y2"))
- distance = (math.sqrt((x2 - x1)**2 + (y2 - y1)**2))
- print()
- print("The distance between the points entered is", distance)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement