用if比如
if(a+b>c||a+c>b||b+c>a) { if(a==b&&b==c)等边三角形, if(a==b||a==c||b==c)等腰三角形 } else 不是三角形
数学上怎么判断三角形就怎么写
用if...else。switch比较麻烦
不需要,if就可以了