task2.c

include <stdio.h>

int main()
{
double a, b, c;

scanf_s("%lf%lf%lf" , &a, &b, &c);
if (a + b > c and a + c > b and b + c > a)
    printf("能构成三角形\n");
else
	printf("不能构成三角形\n");

	return 0;

}

屏幕截图 2025-10-08 235813

屏幕截图 2025-10-08 235752

image

posted on 2025-10-09 00:00  唐思齐  阅读(2)  评论(0)    收藏  举报