#include <stdio.h>
#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;
}

相关文章:

  • 2021-11-27
  • 2022-12-23
  • 2021-11-27
  • 2021-11-27
  • 2022-12-23
  • 2021-12-02
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-15
  • 2022-01-13
  • 2021-11-27
  • 2022-12-23
相关资源
相似解决方案