while ( file.good() )
{
file >> InPut;
cout << "The number of elements in this group is " << InPut << endl;
cout << "The data in this group is: ";
for (int i=0; i <InPut; i++)
{
file >> nextInt;
total=total+nextInt;
cout << nextInt << " ";
}
cout << endl << "Average = " << total/InPut << endl << endl; // Sum divided by InPut
total=0; // Reset Total
}