这个程序哪有错,求解答
#include<stdio.h>#include<math.h>
int main()
{
float a,b,c,p,area;
printf("please input triange sides:");
scanf("%f,%f,%f",&a,&b,&c);
printf("output:\n");
if(a+b>c||a+c>b||b+c>a)
{
p=(a+b+c)/2;
area=sqrt(p*(p-a)*(p-b)*(p-c));
printf("area=%.2f\n",area);
}
else
printf("data error\n");
return 0;
}