#include <stdio.h>标签:lf,y1,dx,dy,x2,y2 From: https://blog.51cto.com/javaalpha/5892760
#include <math.h>
int main(){
double x1,y1,x2,y2,dx,dy;
printf("请输入第一个座标:/n");
scanf("%lf %lf",&x1,&y1);
printf("请输入第二个座标:/n");
scanf("%lf %lf",&x2,&y2);
dx=x1-x2;
dy=y1-y2;
dx=sqrt(dx*dx+dy*dy);
printf("%lf/n",dx);
return 0;
}