我又糊涂了....
#include<stdio.h>main()
{
int a[6]={90,85,92,77,80,62},i;
int count=0;
float average=0;
for(i=0;i<=5;i++)
{ count+=a[i]; average=count/6;}
printf("%d\n",average);
for(i=0;i<=5;i++)
if(a[i]>average)
printf("%d\t",a[i]);
printf("\n");
}哪里错了????为什么average输出的是0不是平均数呢???????????