#include
using namespace std;
#define N 5
void main() { int a[N],i,*pmax,*pmin,*p; float av;
for ( i=0;i>a[i];
pmax=pmin=p=a; p++; av=0;
for ( i=1;iav+=*p;
if ( *p>*pmax ) pmax=p;
if ( *p<*pmin ) pmin=p;
}
av/=N;
cout<<"最大值"<<*pmax<<",最小值"<<*pmin<<",平均值"<}