#include
int main(){
int stuCnt,i = 0,pass = 0,fail = 0;
float score;
printf("请输入学生人数:");
scanf("%d",&stuCnt);
printf("请输入所有学生成绩:");
while(i < stuCnt){
scanf("%f",&score);
if(score >= 60)
pass++;
else fail++;
i++;
}
printf("及格人数:%d\n不及格人数:%d\n",pass,fail);
return 0;
}