last lab
This commit is contained in:
12
labPython/lab1/number5_2.py
Executable file
12
labPython/lab1/number5_2.py
Executable file
@@ -0,0 +1,12 @@
|
||||
from math import sqrt
|
||||
|
||||
print("Введите координаты x1,y1")
|
||||
x1 = int(input())
|
||||
y1 = int(input())
|
||||
print("Веедите координаты x2,y2")
|
||||
x2 = int(input())
|
||||
y2 = int(input())
|
||||
|
||||
|
||||
|
||||
print(sqrt((x2-x1)**2+(y2-y1)**2))
|
||||
Reference in New Issue
Block a user