int sum(int a[],int n)
{
int i,sum;
for(i=0,sum=0;isum+=a[i];
return sum;
}
double average(int a[],int n)
{
int i,sum;
for(i=0,sum=0;isum+=a[i];
return 1.0*sum/n;
}
int over_avg(int a[],int n, double avg)
{
int i,count;
for(i=0,count=0;i{
if(a[i]>avg)
{
printf("%d,",a[i]);
count++;
}
}
return count;
}