#include <stdio.h>
int main()
{
int score1,score2,score3,score4,score5;
int totalscore;
printf("Input the score of five students:\n");
scanf("%d",&score1);
scanf("%d",&score2);
scanf("%d",&score3);
scanf("%d",&score4);
scanf("%d",&score5);
totalscore =score1+score2+score3+score4+score5;
printf("The average score is %f\n",totalscore/5.0);
return 0;
}
懂得算几个数的平均数.