求梯形的面积c语言
#include
intmain()
{
floata,b,c,s;
scanf("%d,%d,%d",&a,&b,&c);
s=(a+b)*c/2.0;
printf("%.2fn",s);
return0;
}
错在哪里为什么输出的答案是0呢