请大虾们帮帮忙
#define PI 3.14#include"math.h"
main()
{
float r1,r2,s1,s2,s,r;
float area(float r);
scanf("%1f,%1f",&r1,&r2);
s1=area(r1);
s2=area(r2);
if(s1>s2)
s=s1-s2;
else s=s2-s1;
printf("%1f",s);
}
请帮我看看 错再哪里了 ?谢谢
#define PI 3.14 #include <math.h> int main(void) { float r1,r2,s1,s2,s; float area(float r); scanf("%1f,%1f",&r1,&r2); s1=area(r1); s2=area(r2); if(s1>s2) s=s1-s2; else s=s2-s1; printf("%1f",s); return 0; } float area(float r) { return (float)(PI*r*r); }