是白盒加黑盒的。。。 || b * b + c * c == a * a) {
if (a == b || a == c || b == c) {
System.out.println("为等腰直角三角形.");
} else {
System.out.println("一般直角三角形.");
}
} else if (a == b && b == c && a == c) {
System.out.println("为等边三角形.");
} else if ((a == b && a != c) || (a == c && a != b)
|| (b == c && a != c)) {
2021-10-20 19:17:14
497KB
测试
1