BC71 三角形判断
思路:
step1:输入三边;
step2:判断形状;打印输出;
代码如下:
while True:
try:
a,b,c = list(map(int,input().split()))
if a+b>c and a+c>b and b+c>a:
if (a == b and a != c ) or (a == c and a != b ) or (b == c and b != a ):
print('Isosceles triangle!')
elif a == b == c:
print('Equilateral triangle!')
else:
print('Ordinary triangle!')
else:
print('Not a triangle!')
except:
break