提交时间:2024-01-28 17:16:33
运行 ID: 38838
#include<iostream> using namespace std; int main() { float n,age,S; S=0; cin>>n; int i=n; while(i>0){ cin>>age; S+=age; i-=1; } float T=S/n; printf("%.2f",T); return 0; }