public class qi41
{
public static void main(String[]args){
qi41 qwe=new qi41();
int max=qwe.ages();
System.out.println("最高分为:"+max);}
public int ages(){
int ages[]={13,23,16,9,7,28,29};
int i=ages[0];
for(int q=0;q<=ages.length;q++){
if(i<=ages[q]){
i=ages[q];
}
}
return i;
}
}