解题思路:
注意事项:
参考代码:
#include<iostream>
#include<cmath>
using namespace std;
int main()
{
double x1, y1, x2, y2;
while (cin >> x1 >> y1 >> x2 >> y2)
{
double ans = sqrt(pow(x1 - x2, 2) + pow(y1 - y2, 2));
printf("%.2lf\n", ans);
}
return 0;
}
0.0分
0 人评分
C语言训练-计算1977!* (C语言代码)浏览:932 |
C二级辅导-等差数列 (C语言代码)浏览:620 |
C语言程序设计教程(第三版)课后习题6.7 (C语言代码)浏览:670 |
C语言程序设计教程(第三版)课后习题11.5 (C语言代码)浏览:1544 |
C语言程序设计教程(第三版)课后习题1.5 (C语言代码)浏览:398 |
【计算直线的交点数】 (C语言代码)浏览:1488 |
Cylinder (C语言描述,蓝桥杯)浏览:1271 |
C语言程序设计教程(第三版)课后习题5.4 (C语言代码)浏览:580 |
C语言训练-亲密数 (C语言描述,反正怎么都能对)浏览:2245 |
敲七 (C++代码)浏览:1106 |