解题思路:
注意事项:
参考代码:
#include<stdio.h>
#include<math.h>
int main()
{
double xa = 0;
double ya = 0;
double xb = 0;
double yb = 0;
double d = 0;
scanf("%lf %lf\n", &xa, &ya);
scanf("%lf %lf\n", &xb, &yb);
d = sqrt((xb-xa)*(xb-xa)+(yb-ya)*(yb-ya));
printf("%.3lf", d);
return 0;
}
0.0分
0 人评分
母牛的故事 (C语言代码)浏览:706 |
C语言程序设计教程(第三版)课后习题8.9 (C语言代码)浏览:687 |
【出圈】 (C语言代码)浏览:818 |
2006年春浙江省计算机等级考试二级C 编程题(2) (C语言代码)浏览:498 |
IP判断 (C语言代码)浏览:814 |
C语言程序设计教程(第三版)课后习题1.5 (C语言代码)浏览:464 |
C语言程序设计教程(第三版)课后习题8.8 (C语言代码)浏览:574 |
1157题解浏览:761 |
1126题解浏览:643 |
输出九九乘法表 (C语言代码)浏览:1168 |