题解 | 三角形判断
三角形判断
https://www.nowcoder.com/practice/689ec1e742394e09b1059556fc167b65
while True:
try:
a,b,c=map(int,input().split())
if a+b>c and a+c>b and b+c>a:
if a==b==c:
print('Equilateral triangle!')
elif a==b or b==c or a==c:
print('Isosceles triangle!')
else:
print('Ordinary triangle!')
else:
print('Not a triangle!')
except:
break
查看10道真题和解析
