int a[]={12,43,56,14,78,16,50,26,30,40};
int max=a[0];
int i=0;
int len = sizeof(a)/sizeof(int);
for(i=0;i<len;i++){
if(a[i]>=max){
max=a[i];
}
}
lr_output_message("max=%d",max);
return 0;