#include<stdio.h>
voidInput_Max_Min_Arv(int*p,int*pl,int*ps,double*arv){
inti;
printf("Pleaseenterthe10Numbers...\n");
for(*pl=*ps=i=0;i<10;i++){
scanf("%d",p+i);
*arv+=p[i];
if(p[i]<p[*ps])
*ps=i;
if(p[i]>p[*pl])
*pl=i;
}
}
intmain(intargc,char*argv[]){
intm[10],ml,ms;
doublema;
Input_Max_Min_Arv(m,&ml,&ms,&ma);
printf("TheMAXism[%d]==%d\nTheMINism[%d]==%d\n",ml,m[ml],ms,m[ms]);
printf("Thearvis%f",ma/10);
return0;
}