Run ID:109805

提交时间:2025-02-12 09:31:02

#include <iostream> using namespace std; int main(){ int a[5]; int tot =0; for(int i=0;i<5;i++) { cin>>a[i]; tot += a[i]; } float avg = tot/5.0; printf("%.2f\n",avg); for(int j=0;j<5;j++) if(a[j]>avg) cout<< a[j]<<" "; return 0; } /* Input 1 2 3 4 5 Output 3.00 4 5 */