求解!判断是否为三角形,判定成功后求面积,但结果无论输入什么都判定为否,这是啥情况😶#include<stdio.h>
#include<math.h>
int main()
{
int a,b,c,p,s;
printf("请输入三角形的三条边\n");
scanf("%d%d%d",&a,&b,&c);
if(a+b>c&&b+c>a&&a+c>b)
{p=(a+b+c)/2;
s=sqrt(p*(p-a)*(p-b)*(p-c));
printf("%.2d",s);}
else
printf("此三角形不成立\n");
return 0;}