老是提示错误
int sum=age1+age2+age3+age4; double avg=sum/4; int minus=age1-age2; int newAge1=--age1; System.out.println(sum); System.out.println(avg); System.out.println(minus); System.out.println(newAge1); 运行结果是正确的,但是提交提示错误,到底哪错了?
int sum=age1+age2+age3+age4; double avg=sum/4; int minus=age1-age2; int newAge1=--age1; System.out.println(sum); System.out.println(avg); System.out.println(minus); System.out.println(newAge1); 运行结果是正确的,但是提交提示错误,到底哪错了?
2016-02-22
举报