C#
float func()
{
int count=int.Prase(Console.Read());
int sum=0;
for(int i=0;i
sum+=int.Prase(Console.Readline());
}
float avg = (float)(sum*100/count)/100;
}
#include "stdio.h"
void main()
{
int a[10];
int n,sum=0;
scanf("%d",&n);
for(int i=0;i
scanf("%d",&a[i]);
sum+=a[i];
}
float avg=(float)sum/n;
printf("%0.2f",avg);
}
什么语言啊?