#include
int main()
{
float a[10];
int i;
printf("请输入使命学生的成绩:");
for (i=0;i<10;i++)
{
scanf("%f",&a[i]);
}
int fail=0,excellent=0;
float sum=0,average=0;
for (i=0;i<10;i++)
{
if (a[i]<60)
{
fail++;
}
if (a[i]>=80)
{
excellent++;
}
sum=sum+a[i];
}
average=sum/10;
printf("不及格人数为:%d\n优秀人数为: %d\n平均成绩为: %2.2f\n",fail,excellent,average);
return 0;
}