#include <stdio.h>
#include <math.h>
int main()
{
double a, b, c, d, i, distance, temp;
while (scanf("%lf%lf%lf%lf", &a, &b, &c, &d) != EOF)
{
temp = (a - c) * (a - c) + (b - d) * (b - d);
distance = sqrt(temp);
printf("%.2f\n", distance);
/* code */
}
return 0;
}
1084: 计算两点间的距离(多实例测试)
最新推荐文章于 2023-05-09 21:29:26 发布