错在哪里了,他提示“s”is not a function or function pointer 10
#include<stdio.h>#include<math.h>intmain(){floata,b,c;floats,area;scanf("%f,%f,%f",&a...
#include <stdio.h>
#include <math.h>
int main()
{
float a,b,c;
float s,area;
scanf("%f,%f,%f",&a,&b,&c);
s=(a+b+c)/2;
area=sqrt(s(s-a)(s-b)(s-c));
printf("%.2f,%.2f",s,area);
return 0;
} 展开
#include <math.h>
int main()
{
float a,b,c;
float s,area;
scanf("%f,%f,%f",&a,&b,&c);
s=(a+b+c)/2;
area=sqrt(s(s-a)(s-b)(s-c));
printf("%.2f,%.2f",s,area);
return 0;
} 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询