#include<stdio.h>
main()
{
int x;
double sum=0;
int cnt=0;
int number[100];
scanf("%d",&x);
while(x!=-1)
{
number[cnt]=x;
sum+=x;
cnt ++;
scanf("%d",&x);
}
if(cnt>0)
{
int i;
double average =sum/cnt;
for(i=0;i<cnt;i++)
{
if(number[i]>average)
{
printf("%d",number[i]);
}
}
}
}
讲课内容
最新推荐文章于 2024-08-01 21:32:07 发布