答案

傅杭欣  •  2年前


#include<bits/stdc++.h> 
using namespace std; 
int main() 

int a[5],i; 
double s=0; 
for(i=0;i<5;i++) 

 cin>>a[i]; 
 s+=a[i]; 

 printf("%.2f\n",s/5);  
for(i=0;i<5;i++) 

 if(a[i]>s/5){ 
 cout<<a[i]<<" "; 
    } 

   return 0; 
}


评论:

你的不凡基础建设


郑玥婷  •  2年前


傅杭欣  •  2年前