float dist(float x1,float x2,float y1,float y2)
{
float d = sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2));
return d;
}
int main()
{
printf("请输入2个点的坐标:");
float a = 0,b = 0,c = 0,d = 0;
scanf("%f",&a,&b,&c,&d);
float s=dist(a,b,c,d);
printf("%f",s);
return 0;
}