#include
int main(void)
{
int x[10]; int sum = 0; int i = 0; int avg = 0;
for(i = 0; i<10; i++) scanf("%d", x+i);
for(i = 0; i<10; i++) sum += x[i];
avg = sum / 10;
printf("平均数 = %d\n", avg);
for(i = 0; i<10; i++) if (x[i] > avg) printf("%d ", x[i]);
return 0;
}
#include
void main()
{
int i=0;
float a[9],sum=0,avg;
while(i<=9)
{
scanf("%f",&a[i]);
sum+=a[i];
i++;
}
printf("avg is %.2f\n",avg=sum/10);
for(i=0;i<=9;i++)
{
if(a[i]>avg)printf("%.2f ",a[i]);
}
}