#include <stdafx.h>
int zhouchang(int a,int b,int c)
{
if ((a + b )<= c || (a + c )<= b || (b + c )<= a)
{
printf("不能构成三角形");
return 0;
}
else
{
int sum = a + b + c;
}
}
int main()
{
int a, b, c;
a = 3;
b = 4;
c = 5;
printf("三角形周长为%d", zhouchang(a,b,c));
}
onemoo
redstonesl
木柘
留得枯荷听雨声lyx
木柘
相关分类