#include "stdafx.h"
int _tmain(int argc, _TCHAR* argv[])
{
int a,b,c;
puts("输入三边长度(a,b,c):\n");
do
{
scanf_s("%d,%d,%d",&a,&b,&c);
} while ((a+b)<=c || (a+c)<=b || (b+c)<=a);
if ((a == b)&&(b == c))
{
puts("等边!");
}
else
if ((a==b)||(b==c)||(c==a))
{
puts("等腰!");
}
else
{
puts("不等边!");
}
return 0;
}
|