#include <stdio.h> #include <math.h> int main() { int a,b,c;//三角形的三边 while((a+b>c && a-b<c)==0)//不符合三角形的构成条件 { //printf("请输入a,b,c:"); scanf("%d %d %d",&a,&b,&c); }//符合则跳出循环 float l = a+b+c;//周长 float p = l/2;//半周长 float s = sqrt(p*(p-a)*(p-b)...