输出答案一样,但提示错误,为什么
public class HelloWorld{
public static void main(String[] args) {
int age1=24;
int age2=18;
int age3=36;
int age4=27;
int sum=age1+age2+age3+age4;
double avg=sum/4;
int minus=age1-age2;
int newAge=--age1;
System.out.println(sum);
System.out.println(avg);
System.out.println(minus);
System.out.println(newAge);
}
}