# include<stdio.h>
int main()
{
int n,i;
double sum,grade,count;
printf("entern:\n");
scanf("%d",&n);
sum = 0;
count = 0;
for(i=1;i<=n;i++){
printf("enter grade#%d:",i);
scanf("%d",&grade);
sum = sum+grade;
if(grade<60)
count++;
}
printf("average=%.2f\n",sum/n);
printf("count=%d\n",count);
return 0;
}
编译过了 没有语法问题 但是最后运行的的结果不正确 都是零
asd8532