#include <iostream> #include <cmath> #include <cstring> #include <string> #include <iomanip> #include <algorithm> #include <stack> #include <fstream> using namespace std; void FileTest() { ifstream in; ofstream out; in.open("in.txt"); out.open("out.txt"); int n; float t,sum=0,ave; in>>n; for(int i=0;i<n;i++) { in>>t; sum+=t; } ave=sum/n; out<<ave; in.close(); out.close(); } int main() { FileTest(); cout << "Hello C++ "; return 0; }