import java.util.*;
public class Test8 {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.println("请输入三个数:");
int a = in.nextInt();
int b = in.nextInt();
int c = in.nextInt();
// 错误1: if (a == b == c) {
// 错误1修改
if (a == b && b == c) {
System.out.println("这三个数相等");
} else if (a + b + c >= 1000) {
System.out.println("三数之和大于1000");
} else {
System.out.println("三数之和不大于1000");
}
}
}
int a,int b, int c是否可以像c语言一样int a,b,c? 答:是
修改if括号里面的为a==b && b==c