void func(int a,int b,int c,int *pmax,int *pmin,float *pavg){*pavg = (a+b+c) / 3.0;*pmax = a; *pmin=a;if(b > *pmax) *pmax=b;if(b < *pmin) *pmin=b;if(c > *pmax) *pmax = c;if(c < *pmin) *pmin = c;}