|
def distanceformula(): x = int(input("X1: ")) y = int(input("Y1: ")) xx = int(input("X2: ")) yy = int(input("Y2: ")) d = (((x-xx)**2)+((y-yy)**2))**0.5 print("The distance between points (",x,",",y,") and (",xx,",",yy,") is: ", d)
Views:
18532
|
Added by:
woz
|
Date:
2009-04-28
|
|