bài tập 1
b1 xác định bài toán
input : nhận 4 số( x1 y1 ) toạ độ điểm A, (x2 y2 ) toạ độ điểm B
output : độ dài đoạn AB
b2 thuật toán
+/ nhập 4 số x1 y1 x2 y2
+/ sqrt ((x2-x1)*(x2-x1)+(y2-y1)*(y2-y1))
+/ in ra độ dài AB
b3: chương trình
#baitap1
from math import sqrt
x1= float (input())
y1= float (input())
x2= float (input())
y2= float (input())
dodai= sqrt ((x2-x1)*(x2-x1)+(y2-y1)*(y2-y1))
print (" {:.3f}". format(dodai))