满意答案
wangvp95
2013.04.13
采纳率:43% 等级:12
已帮助:7118人
#include
#define N 10
int AverageScore(int Score[N])
{
int Score[N];
int StudentAverageScore=60;/*初值为60*/
int SumScore=600;/*初值为600*/
int Count=0;
for(Count=0;Count
Sum=Sum+Score[Count];
}
StudentAverageScore=Sum/N;
return StudentAverageScore;
}
int PrintStudentsLowerAverageScore(Score[N])
{
int Score[N];
int Count=0;
int StudentAverageScore=AverageScore(Score[N]);
for(Count=0;Count
if(Score[Count]
}
return 1;
}
int main(void)
{
int Count=0;
int Score[N];
int StudentAverageScore=60;
printf("Please input the scores");
for(Count=0;Count
scanf("%d",&Score[Count]);
}
StudentAverageScore=AverageScore(Score[N]);
printf("The Average Score is %d",StudentAverageScore);
PrintStudentsLowerAverageScore(Score[N]);
return 1;
}
11分享举报