#include<stdio.h>
#include<math.h>
public GetFucRec(float a,float b)
{
float x;
float y;
//1,x^2+y^2=a^2,,,2、(15-x)^2+y^2=b^2
x=(15-(b*b-a*a)/15)/2;
y=sqrt(a*a-x*x);
printf("x=%.2f y=%.2f",x,y);
}
int main()
{
//GetFucRec();
}
你要用的话 直接在main里面调用这个函数 传入a和b 函数会自己输出结果的