为啥 sum/4.0 结果是26.25嘞
int age1=24; int age2=18; int age3=36; int age4=27; int sum = age1+age2+age3+age4; double avg = sum/4.0; 为啥 sum/4.0 结果是26.25嘞?
int age1=24; int age2=18; int age3=36; int age4=27; int sum = age1+age2+age3+age4; double avg = sum/4.0; 为啥 sum/4.0 结果是26.25嘞?
2015-12-01
举报