int main()
{
int num[10],max,min,sum,i;
float avg;
printf("please enter 10 numbers:");
for(i=0;i<10;i++)
{
scanf("%d",&num[i]);
sum=sum+num[i];
if(i==0){max=num[i];min=num[i];}
if(max<num[i])max=num[i];
if(min>num[i])min=num[i];
}
avg=sum/10.0;
printf("\nmax:%d,min:%d,average:%.2f\n",max,min,avg);
return 0;
}