满意答案
v_克拉克_v
2013.05.25
采纳率:47% 等级:12
已帮助:8409人
#include
void main()
{
int a,b,c;
puts("please input three integers:");
scanf("%d %d %d",&a,&b,&c);
if(a+b
{
printf("sorry!the three integers can't constitute a triangle!\nBecause %d+%d
return;
}
if(c+b
{
printf("sorry!the three integers can't constitute a triangle!\nBecause %d+%d
return;
}
if(a+c
{
printf("sorry!the three integers can't constitute a triangle!\nBecause %d+%d
return;
}
puts("the three integers can constitute a triangle!");
}
03分享举报