...调用函数sist(x1,y1,x2,,y2)计算两点间距离
发布网友
发布时间:2024-10-24 01:19
我来回答
共1个回答
热心网友
时间:2024-10-28 05:07
#include "math.h"
#include "stdio.h"
double sist(double x1,double y1, double x2, double y2)
{
return(sqrt(x1-x2)*(x1-x2)+(y1-y2)*(y1-y2))
}
main()
{
double x1,x2,y1,y2;
scanf(....);
printf("%f",sise(...));
}