回复 4楼 Jonny0201
#include<stdio.h>
#include<math.h>
int main()
{
double a,b,c,d,e,f;
double x;
double y;
double j;
double h;
double A;
double ji;
printf("请?输o?入¨?坐á?标à¨o及¡ã两¢?半ã?径?\n");
scanf("%lf%lf%lf%lf%lf%lf",&a,&b,&c,&d,&e,&f);
x=fabs(a-c);
y=fabs(b-d);
j=sqrt(x*x+y*y);
if(j<1e-9)
{printf("输o?入¨?错ä¨a误¨®\n");
return 0;
}
h=e+f;
if(j<h)
{
if(e>f)
A=(f*f+j*j-e*e)/(2*j*f);
else
A=(e*e+j*j-f*f)/(2*j*e);
ji=0;
ji=acos(A);
ji=2*ji/3.1415926*180;
printf("与®?小?圆2的ì?夹D角?%lf\n",ji);
}
else
printf("两¢?圆2无T交?点ì?");
return 0;
}