请教各位大神,这个数组哪里出错了
#include <stdio.h>int main(void)
{
int numbers[10];
int count=10;
long sum=0L;
float average=0.0f;
printf("\nEnter the 10 numbers:\n");
for(int i=0;i<count;i++)
{
printf("%2d>",i+1);
scanf("%d",&numbers[i]);
sum+=numbers[i];
}
average=(float)sum/count;
printf("\nAverage of the numbers entered is :%f\n",average);
getch();
return 0;
}