#include <stdio.h> #include<math.h>//调用数学函数的头文件 int main() { float x1, x2, y1, y2, s; while (scanf("%f %f %f %f", &x1, &y1, &x2, &y2) != EOF) { s = sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2)); printf("%.2f\n",s); } return 0; }
10-30
347
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
10-04
1778
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)