Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions find distance between 2 points
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
x1=float(input("enter x coordinate of first point:"))
y1=float(input("enter y coordinate of first point:"))
x2=float(input("enter x coordinate of second point:"))
y2=float(input("enter y coordinate of second point:"))
d=((x2-x1)**2+(y2-y1)**2)**0.5
print("distance=",d)