You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
276 B
12 lines
276 B
from math import *
|
|
|
|
def euclidienne(z1: float, y1: float, z2: float, y2: float):
|
|
x = sqrt((z2 - z1)**2 + (y2 - y1)**2)
|
|
return x
|
|
|
|
valZ1 = float(input())
|
|
valY1 = float(input())
|
|
valZ2 = float(input())
|
|
valY2 = float(input())
|
|
|
|
print(euclidienne(valZ1, valY1, valZ2, valY2))
|