#include<stdio.h> #define n 10 int a[n]; int main() { int i,j,num; int max,min; double avg,sum=0; scanf("%d",&num); for(i=0;i<num;i++) { scanf("%d",&a[i]); sum=sum+a[i]; } max=min=a[0]; for(i=1;i<num;i++) { if(a[i]>max) { max=a[i]; } if(a[i]<min) { min=a[i]; } } avg=(double)sum/num; printf("max=%d,min=%d,avg=%.2f ",max,min,avg); return 0; }