include<stdio.h>
int main()
{
int i,count=0;
int a[5];
float sum=0,aver;
printf("請輸入一些正整數(shù):");
for(i=0;i<N;i++)
{
scanf("%d",&av[i]);
if(av[i]==-1) break;
sum+=av[i];
count++;
}
aver=sum/count;
printf("平均數(shù)為%.2f\n",aver);
printf("大于平均數(shù)的數(shù)有: ");
for(i=0;i<=count;i++){
if(av[i]>aver)
printf("%d ",av[i]);
}
printf("\n");
}