2

`#include <stdio.h>

include <stdlib.h>

int main(){
float a,b,c;
while(scanf("%f%f%f",&a,&b,&c)!=EOF){
if(a<b+c && b<a+c && c<a+b)
printf("能构成三角形\n");
else
printf("不能构成三角形\n");
}
system("pause");
return 0;
} `

posted @ 2024-03-18 12:44  酒庄  阅读(1)  评论(0编辑  收藏  举报