#include<stdio.h>
int main(void)
{
/*********Begin*********/
int stu = 0;
float sco = 0;
float ave = 0;
float sum = 0;
int i = 1;
printf("the number of students:");
scanf("%d",&stu);
printf("the scores:");
if(stu>0)
{
while(i<=stu)
{
scanf("%g",&sco);
sum = sum+sco;
i++;
ave = sum/stu;
}
}
else if(stu<0)
{
ave = 0;
}
printf("average=%.2f",ave);
/*********End**********/
return 0;
}