严称明


私信TA

用户名:uq_68584741256

访问量:2082

签 名:

等  级
排  名 3561
经  验 1866
参赛次数 0
文章发表 20
年  龄 0
在职情况 学生
学  校 红河学院
专  业 数字媒体技术

  自我简介:


解题思路:

注意事项:

参考代码:

#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 人评分

  评论区

  • «
  • »