public class A
{
public static void main(String[] arsg){
int sumAge = 0;
int agesLen = ages.length;
for(int i=0;i<agesLen;i++){
sumAge+=ages[i];
}
double avgAge = sumAge*1.0/agesLen;
System.out.println("共:"+agesLen+" 个人,总年纪:"+sumAge+" 平均年龄:"+avgAge);
}
}